Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8658/0.8658, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003887, allocations: 21.83 kB / 237.8 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06338/0.06378, allocations: 31.34 MB / 269.1 MB, free: 7.031 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe): time 1.696/1.759, allocations: 298.5 MB / 0.5543 GB, free: 9.445 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5695/2.329, allocations: 196.5 MB / 0.7463 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/2.33, allocations: 30.88 kB / 0.7463 GB, free: 1.602 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicOnePhaseFlowPipe.mo:150:3-151:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicOnePhaseFlowPipe.mo:152:3-153:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:36:3-37:55:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:38:3-40:35:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicOnePhaseFlowPipe.mo:150:3-151:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicOnePhaseFlowPipe.mo:152:3-153:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceQ.mo:62:3-63:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0006573/2.331, allocations: 247.2 kB / 0.7465 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001778/2.332, allocations: 0.8622 MB / 0.7474 GB, free: 1.555 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.04055/2.373, allocations: 14.33 MB / 0.7614 GB, free: 1.238 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009571/2.383, allocations: 10.93 MB / 0.772 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006643/2.389, allocations: 3.966 MB / 0.7759 GB, free: 16.98 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005861/2.395, allocations: 3.243 MB / 0.7791 GB, free: 16.51 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007186/2.402, allocations: 4.283 MB / 0.7833 GB, free: 15.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002987/2.405, allocations: 0.7786 MB / 0.784 GB, free: 15.36 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05778/2.463, allocations: 23.46 MB / 0.8069 GB, free: 124 kB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.005038/2.468, allocations: 3.002 MB / 0.8099 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.007857/2.476, allocations: 3.458 MB / 0.8133 GB, free: 9.738 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.04514/2.521, allocations: 19.47 MB / 0.8323 GB, free: 7.547 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/2.521, allocations: 0.7188 kB / 0.8323 GB, free: 7.547 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.723e-06/2.521, allocations: 0 / 0.8323 GB, free: 7.547 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.000337/2.522, allocations: 0.5938 kB / 0.8323 GB, free: 7.547 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1372 * Number of variables: 1372 Notification: Performance of Generate backend data structure: time 0.03004/2.552, allocations: 8.443 MB / 0.8405 GB, free: 15.06 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/2.552, allocations: 11.89 kB / 0.8405 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002532/2.554, allocations: 0.5722 MB / 0.8411 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005911/2.56, allocations: 2.601 MB / 0.8436 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001037/2.561, allocations: 0.9984 MB / 0.8446 GB, free: 10.85 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001937/2.563, allocations: 0.5039 MB / 0.8451 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02112/2.585, allocations: 9.348 MB / 0.8542 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002094/2.585, allocations: 7.984 kB / 0.8542 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001822/2.587, allocations: 216 kB / 0.8544 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/2.587, allocations: 128 kB / 0.8546 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03355/2.62, allocations: 22.96 MB / 0.877 GB, free: 9.605 MB / 0.6856 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08292/2.703, allocations: 43.67 MB / 0.9196 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03326/2.737, allocations: 11.84 MB / 0.9312 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01032/2.747, allocations: 5.29 MB / 0.9364 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8067/3.554, allocations: 290.9 MB / 1.22 GB, free: 237.8 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/3.554, allocations: 125.9 kB / 1.221 GB, free: 237.8 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=807): time 2.596e-05/3.554, allocations: 0 / 1.221 GB, free: 237.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=807): time 0.05344/3.607, allocations: 20.02 MB / 1.24 GB, free: 220.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/3.608, allocations: 214.3 kB / 1.24 GB, free: 220.2 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00245/3.61, allocations: 1.857 MB / 1.242 GB, free: 218.4 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.002115/3.612, allocations: 149.7 kB / 1.242 GB, free: 218.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008211/3.613, allocations: 1.131 MB / 1.243 GB, free: 217.2 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.004877/3.618, allocations: 2.856 MB / 1.246 GB, free: 214.8 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007311/3.625, allocations: 1.363 MB / 1.247 GB, free: 213.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 7.356e-05/3.625, allocations: 301.1 kB / 1.248 GB, free: 213.2 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009539/3.635, allocations: 4.226 MB / 1.252 GB, free: 208.9 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0103/3.645, allocations: 5.087 MB / 1.257 GB, free: 203.6 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02103/3.666, allocations: 10.12 MB / 1.267 GB, free: 193.3 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.148e-05/3.666, allocations: 4.625 kB / 1.267 GB, free: 193.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.03851/3.705, allocations: 14.78 MB / 1.281 GB, free: 178.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/3.705, allocations: 75.66 kB / 1.281 GB, free: 178.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.292e-05/3.705, allocations: 12 kB / 1.281 GB, free: 178.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09683/3.802, allocations: 26.81 MB / 1.307 GB, free: 151.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008099/3.81, allocations: 1.133 MB / 1.309 GB, free: 150.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04106/3.851, allocations: 43.66 MB / 1.351 GB, free: 104.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007846/3.859, allocations: 0.7563 MB / 1.352 GB, free: 103.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002886/3.862, allocations: 343.8 kB / 1.352 GB, free: 103.5 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 17 (sourceP1.C.ftype,dynamicOnePhaseFlowPipe1.fluid,sinkP1.fluid,sourceP1.fluid1,sourceP.C.ftype,switchValve.C2.diff_on_1,dynamicOnePhaseFlowPipe.fluid,sinkP.fluid,switchValve.fluid,nONL.yL.signal,echelon.yL.signal,sourceP.fluid1,dynamicOnePhaseFlowPipe1.C1.diff_on_2,dynamicOnePhaseFlowPipe1.C2.diff_on_1,dynamicOnePhaseFlowPipe.C1.diff_on_2,sourceP.C.diff_on_2,dynamicOnePhaseFlowPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (351): * Single equations (assignments): 327 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(32,214), (33,218)} Notification: Performance of prepare postOptimizeDAE: time 0.005529/3.867, allocations: 1.274 MB / 1.353 GB, free: 102.2 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001668/3.869, allocations: 460.6 kB / 1.354 GB, free: 101.8 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0377/3.907, allocations: 16.63 MB / 1.37 GB, free: 85.16 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002242/3.907, allocations: 39.86 kB / 1.37 GB, free: 85.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.571e-05/3.907, allocations: 0 / 1.37 GB, free: 85.12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004444/3.912, allocations: 1.618 MB / 1.372 GB, free: 83.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002176/3.914, allocations: 128.8 kB / 1.372 GB, free: 83.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005897/3.92, allocations: 295.7 kB / 1.372 GB, free: 83.16 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002354/3.922, allocations: 0.5296 MB / 1.373 GB, free: 82.63 MB / 0.8262 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.05889/3.981, allocations: 18.59 MB / 1.391 GB, free: 64.14 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.03774/4.019, allocations: 15.79 MB / 1.406 GB, free: 48.24 MB / 0.8262 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00942/4.028, allocations: 4.702 MB / 1.411 GB, free: 43.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001918/4.03, allocations: 1.276 MB / 1.412 GB, free: 42.22 MB / 0.8262 GB Notification: Performance of Backend: time 6.71e-07/4.03, allocations: 0 / 1.412 GB, free: 42.22 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.04347/4.074, allocations: 14.04 MB / 1.426 GB, free: 28.46 MB / 0.8262 GB Notification: Performance of SimCode: time 0.02165/4.095, allocations: 13.84 MB / 1.439 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of Templates: time 0.5254/4.621, allocations: 216.2 MB / 1.651 GB, free: 255.9 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicOnePhaseFlowPipe.pipe 2>&1)