Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.4819/0.4819, allocations: 111.6 MB / 131.4 MB, free: 4.43 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.534e-06/2.534e-06, allocations: 0 / 176.5 MB, free: 8.934 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.128e-05/2.381e-05, allocations: 9.125 kB / 176.5 MB, free: 8.926 MB / 170.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestControlValve): time 1.06/1.06, allocations: 257.1 MB / 433.7 MB, free: 176 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02733/1.088, allocations: 32.72 MB / 466.4 MB, free: 15.33 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001853/1.088, allocations: 4 kB / 466.4 MB, free: 15.32 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SinkP.mo:19:3-20:80:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/ControlValve.mo:24:3-25:81:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/ControlValve.mo:26:3-27:79:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004027/1.088, allocations: 155.2 kB / 466.5 MB, free: 15.17 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/1.089, allocations: 183 kB / 466.7 MB, free: 14.99 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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 master/Properties/WaterSteam/IF97_packages.mo:525:9-525: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 master/Properties/WaterSteam/IF97_packages.mo:708:9-708: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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. Notification: Performance of NFTyping.typeClassSections: time 0.01786/1.106, allocations: 9.939 MB / 476.7 MB, free: 5.008 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004899/1.107, allocations: 406 kB / 477 MB, free: 4.609 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/1.107, allocations: 116.8 kB / 477.2 MB, free: 4.492 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/1.107, allocations: 251.2 kB / 477.4 MB, free: 4.246 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/1.108, allocations: 139.7 kB / 477.5 MB, free: 4.109 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/1.108, allocations: 20 kB / 477.6 MB, free: 4.09 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2039/1.311, allocations: 16.83 MB / 494.4 MB, free: 8.633 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/1.312, allocations: 77.7 kB / 494.5 MB, free: 8.633 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/1.312, allocations: 99.28 kB / 494.6 MB, free: 8.633 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01906/1.331, allocations: 10.82 MB / 0.4935 GB, free: 5.129 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/1.331, allocations: 1.375 kB / 0.4935 GB, free: 5.129 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.813e-06/1.331, allocations: 2.906 kB / 0.4935 GB, free: 5.129 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.986e-06/1.331, allocations: 3.469 kB / 0.4936 GB, free: 5.129 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003833/1.335, allocations: 1.61 MB / 0.4951 GB, free: 3.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/1.335, allocations: 12.3 kB / 0.4951 GB, free: 3.977 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.409e-05/1.335, allocations: 57.77 kB / 0.4952 GB, free: 3.949 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/1.335, allocations: 215.8 kB / 0.4954 GB, free: 3.758 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/1.335, allocations: 13.34 kB / 0.4954 GB, free: 3.754 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/1.335, allocations: 19.28 kB / 0.4954 GB, free: 3.746 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/1.335, allocations: 249.2 kB / 0.4957 GB, free: 3.566 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/1.335, allocations: 3.625 kB / 0.4957 GB, free: 3.566 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/1.335, allocations: 13.45 kB / 0.4957 GB, free: 3.555 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/1.335, allocations: 12.91 kB / 0.4957 GB, free: 3.551 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.254e-05/1.335, allocations: 86.59 kB / 0.4958 GB, free: 3.531 MB / 426.7 MB 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.01487/1.35, allocations: 9.736 MB / 0.5053 GB, free: 13.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/1.35, allocations: 71.62 kB / 0.5054 GB, free: 13.49 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.546e-05/1.35, allocations: 35.67 kB / 0.5054 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06335/1.414, allocations: 38.15 MB / 0.5426 GB, free: 7.406 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/1.414, allocations: 44.19 kB / 0.5427 GB, free: 7.359 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 2.074e-06/1.414, allocations: 0 / 0.5427 GB, free: 7.359 MB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0006452/1.414, allocations: 265.3 kB / 0.5429 GB, free: 7.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/1.414, allocations: 51.41 kB / 0.543 GB, free: 7.027 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/1.415, allocations: 337.2 kB / 0.5433 GB, free: 6.719 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/1.415, allocations: 25.7 kB / 0.5433 GB, free: 6.688 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/1.415, allocations: 251.8 kB / 0.5436 GB, free: 6.445 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/1.415, allocations: 121.9 kB / 0.5437 GB, free: 6.336 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/1.415, allocations: 54.31 kB / 0.5437 GB, free: 6.281 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/1.415, allocations: 0.5291 MB / 0.5443 GB, free: 5.754 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.894e-05/1.415, allocations: 29.17 kB / 0.5443 GB, free: 5.727 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-05/1.415, allocations: 90.73 kB / 0.5444 GB, free: 5.625 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/1.415, allocations: 144.6 kB / 0.5445 GB, free: 5.473 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.415, allocations: 0 / 0.5445 GB, free: 5.473 MB / 474.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002288/1.415, allocations: 226.5 kB / 0.5447 GB, free: 5.254 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/1.415, allocations: 4 kB / 0.5447 GB, free: 5.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/1.415, allocations: 4.125 kB / 0.5447 GB, free: 5.246 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003275/1.416, allocations: 86.72 kB / 0.5448 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.094e-05/1.416, allocations: 12 kB / 0.5448 GB, free: 5.148 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005146/1.416, allocations: 0.8572 MB / 0.5457 GB, free: 4.266 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.13e-05/1.416, allocations: 28.42 kB / 0.5457 GB, free: 4.238 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/1.416, allocations: 7.984 kB / 0.5457 GB, free: 4.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.C.b,PuitsP1.C.a,ControlValve.C1.a,ControlValve.C2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 9.121e-05/1.416, allocations: 167 kB / 0.5459 GB, free: 4.062 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/1.416, allocations: 27.81 kB / 0.5459 GB, free: 4.035 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005376/1.417, allocations: 0.6484 MB / 0.5465 GB, free: 3.371 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001642/1.417, allocations: 175.8 kB / 0.5467 GB, free: 3.195 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/1.417, allocations: 0 / 0.5467 GB, free: 3.195 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/1.417, allocations: 0.7969 kB / 0.5467 GB, free: 3.195 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005561/1.418, allocations: 0.6127 MB / 0.5473 GB, free: 2.582 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/1.418, allocations: 0 / 0.5473 GB, free: 2.582 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.639e-05/1.418, allocations: 23.36 kB / 0.5473 GB, free: 2.562 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001593/1.418, allocations: 78.83 kB / 0.5474 GB, free: 2.484 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/1.418, allocations: 4.562 kB / 0.5474 GB, free: 2.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003277/1.418, allocations: 0.8536 MB / 0.5482 GB, free: 1.602 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.418, allocations: 3.375 kB / 0.5482 GB, free: 1.602 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002571/1.419, allocations: 351.3 kB / 0.5486 GB, free: 1.242 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/1.419, allocations: 43.78 kB / 0.5486 GB, free: 1.199 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/1.419, allocations: 13.58 kB / 0.5486 GB, free: 1.188 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.932e-05/1.419, allocations: 4 kB / 0.5486 GB, free: 1.184 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.713e-05/1.419, allocations: 11.97 kB / 0.5486 GB, free: 1.172 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/1.419, allocations: 7.656 kB / 0.5486 GB, free: 1.168 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000139/1.419, allocations: 265.1 kB / 0.5489 GB, free: 0.9219 MB / 474.7 MB Notification: Performance of sort global known variables: time 6e-08/1.419, allocations: 0 / 0.5489 GB, free: 0.9219 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002716/1.422, allocations: 1.227 MB / 0.5501 GB, free: 15.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003993/1.426, allocations: 2.005 MB / 0.552 GB, free: 13.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003624/1.426, allocations: 184.4 kB / 0.5522 GB, free: 13.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.426, allocations: 0 / 0.5522 GB, free: 13.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/1.426, allocations: 80.5 kB / 0.5523 GB, free: 13.66 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/1.426, allocations: 132 kB / 0.5524 GB, free: 13.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/1.428, allocations: 0.5844 MB / 0.553 GB, free: 12.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.302e-05/1.428, allocations: 107 kB / 0.5531 GB, free: 12.81 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.354e-05/1.428, allocations: 25.95 kB / 0.5531 GB, free: 12.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/1.428, allocations: 146.1 kB / 0.5533 GB, free: 12.64 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/1.428, allocations: 0 / 0.5533 GB, free: 12.64 MB / 490.7 MB Notification: Performance of Templates: time 0.04987/1.478, allocations: 50.35 MB / 0.6024 GB, free: 10.54 MB / 0.5261 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.060956747736782]