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 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.88/0.88, allocations: 152.6 MB / 168.9 MB, free: 15.04 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004997/0.0004997, allocations: 17.92 kB / 244.5 MB, free: 15.95 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06304/0.06354, allocations: 33.06 MB / 277.5 MB, free: 1.141 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.Examples.SimpleExamples.TestControlValve): time 1.847/1.91, allocations: 301.2 MB / 0.5652 GB, free: 2.539 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04994/1.96, allocations: 34.91 MB / 0.5992 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002976/1.96, allocations: 0 / 0.5992 GB, free: 15.49 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47: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 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43: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 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38: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.0005825/1.961, allocations: 191.1 kB / 0.5994 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003212/1.961, allocations: 171.1 kB / 0.5996 GB, free: 15.14 MB / 494.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02929/1.991, allocations: 9.89 MB / 0.6092 GB, free: 5.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007556/1.991, allocations: 386.3 kB / 0.6096 GB, free: 4.852 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/1.992, allocations: 116.5 kB / 0.6097 GB, free: 4.738 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/1.992, allocations: 171.3 kB / 0.6099 GB, free: 4.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/1.992, allocations: 179.3 kB / 0.6101 GB, free: 4.395 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/1.992, allocations: 20 kB / 0.6101 GB, free: 4.375 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03415/2.026, allocations: 17.97 MB / 0.6276 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001647/2.027, allocations: 75.7 kB / 0.6277 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002423/2.027, allocations: 155.1 kB / 0.6278 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02402/2.051, allocations: 8.54 MB / 0.6362 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/2.051, allocations: 0 / 0.6362 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.004e-06/2.051, allocations: 0 / 0.6362 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.045e-05/2.051, allocations: 0 / 0.6362 GB, free: 9.594 MB / 0.5137 GB 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.004771/2.056, allocations: 1.591 MB / 0.6377 GB, free: 7.945 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/2.056, allocations: 12.03 kB / 0.6377 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.045e-05/2.056, allocations: 66.47 kB / 0.6378 GB, free: 7.859 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.993e-05/2.056, allocations: 43.66 kB / 0.6379 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/2.056, allocations: 286.3 kB / 0.6381 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/2.056, allocations: 20.44 kB / 0.6381 GB, free: 7.477 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/2.056, allocations: 20 kB / 0.6382 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004839/2.057, allocations: 315.4 kB / 0.6385 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/2.057, allocations: 3.938 kB / 0.6385 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/2.057, allocations: 11.94 kB / 0.6385 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/2.057, allocations: 23.92 kB / 0.6385 GB, free: 7.074 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/2.057, allocations: 201.1 kB / 0.6387 GB, free: 6.879 MB / 0.5137 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.03917/2.096, allocations: 18.24 MB / 0.6565 GB, free: 2.762 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/2.096, allocations: 126.5 kB / 0.6566 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/2.097, allocations: 84.83 kB / 0.6567 GB, free: 2.543 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3522/2.449, allocations: 77.73 MB / 0.7326 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/2.449, allocations: 30.56 kB / 0.7326 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.903e-06/2.449, allocations: 2.625 kB / 0.7326 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.000971/2.45, allocations: 0.4905 MB / 0.7331 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.02e-05/2.45, allocations: 56.02 kB / 0.7332 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/2.45, allocations: 357.8 kB / 0.7335 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/2.45, allocations: 25.7 kB / 0.7335 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.438e-05/2.45, allocations: 186.8 kB / 0.7337 GB, free: 208 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.467e-05/2.45, allocations: 114.2 kB / 0.7338 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.899e-05/2.45, allocations: 55.23 kB / 0.7339 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.981e-05/2.45, allocations: 343.8 kB / 0.7342 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/2.45, allocations: 95.94 kB / 0.7343 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/2.451, allocations: 137.8 kB / 0.7344 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/2.451, allocations: 246.8 kB / 0.7347 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/2.451, allocations: 0 / 0.7347 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003953/2.451, allocations: 332.8 kB / 0.735 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/2.451, allocations: 10.62 kB / 0.735 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/2.451, allocations: 3.719 kB / 0.735 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006991/2.452, allocations: 145.8 kB / 0.7351 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.802e-05/2.452, allocations: 8.156 kB / 0.7351 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003801/2.452, allocations: 0.6108 MB / 0.7357 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/2.452, allocations: 31.28 kB / 0.7358 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/2.452, allocations: 6.156 kB / 0.7358 GB, free: 206.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.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 0.0001166/2.453, allocations: 159.9 kB / 0.7359 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.727e-05/2.453, allocations: 33.7 kB / 0.736 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006595/2.453, allocations: 0.6406 MB / 0.7366 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000361/2.454, allocations: 244.8 kB / 0.7368 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/2.454, allocations: 1.531 kB / 0.7368 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/2.454, allocations: 5.25 kB / 0.7368 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008738/2.455, allocations: 0.819 MB / 0.7376 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/2.455, allocations: 0 / 0.7376 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.984e-05/2.455, allocations: 15.09 kB / 0.7376 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003077/2.455, allocations: 108.5 kB / 0.7377 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/2.455, allocations: 7.906 kB / 0.7378 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003496/2.455, allocations: 0.643 MB / 0.7384 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/2.455, allocations: 0.6562 kB / 0.7384 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/2.456, allocations: 383.4 kB / 0.7387 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/2.456, allocations: 123 kB / 0.7389 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.884e-05/2.456, allocations: 15.77 kB / 0.7389 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/2.456, allocations: 7.641 kB / 0.7389 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/2.456, allocations: 9.047 kB / 0.7389 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/2.456, allocations: 8.531 kB / 0.7389 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002754/2.456, allocations: 332.7 kB / 0.7392 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.456, allocations: 0 / 0.7392 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002821/2.459, allocations: 1.225 MB / 0.7404 GB, free: 205.3 MB / 0.5919 GB 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.004402/2.463, allocations: 2.567 MB / 0.7429 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000555/2.464, allocations: 271.3 kB / 0.7432 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/2.464, allocations: 0 / 0.7432 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002352/2.464, allocations: 104.3 kB / 0.7433 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006825/2.465, allocations: 138.1 kB / 0.7434 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003952/2.469, allocations: 3.722 MB / 0.7471 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/2.469, allocations: 0.8049 MB / 0.7478 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001191/2.469, allocations: 35.88 kB / 0.7479 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/2.469, allocations: 125.9 kB / 0.748 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of SimCode: time 5.91e-07/2.469, allocations: 0 / 0.748 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0783/2.548, allocations: 49.24 MB / 0.7961 GB, free: 155 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/16.66, allocations: 4.531 kB / 0.7961 GB, free: 155 MB / 0.5919 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve_fmu --startTime=0 --stopTime=80 --stepSize=0.032 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.657515401020646] Failed to read output from testmodel.py, exit status != 0: 16.936292896047235 16.949090005 14.895788497 Calling exit ...