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.8724/0.8724, allocations: 153.8 MB / 170.9 MB, free: 13.91 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005233/0.0005233, allocations: 19.7 kB / 247 MB, free: 14.85 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06282/0.06335, allocations: 33.35 MB / 280.4 MB, free: 15.12 MB / 238.1 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.77/1.833, allocations: 307.4 MB / 0.5739 GB, free: 10.47 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04306/1.876, allocations: 34.99 MB / 0.6081 GB, free: 7.344 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002388/1.877, allocations: 0 / 0.6081 GB, free: 7.344 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0005455/1.877, allocations: 192 kB / 0.6083 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/1.878, allocations: 171.1 kB / 0.6085 GB, free: 6.988 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02602/1.904, allocations: 9.915 MB / 0.6181 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006955/1.904, allocations: 390.3 kB / 0.6185 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/1.905, allocations: 104.6 kB / 0.6186 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003338/1.905, allocations: 183.2 kB / 0.6188 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000256/1.905, allocations: 171.3 kB / 0.6189 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/1.905, allocations: 20 kB / 0.619 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03223/1.937, allocations: 17.99 MB / 0.6365 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001684/1.938, allocations: 79.69 kB / 0.6366 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002407/1.938, allocations: 159.1 kB / 0.6368 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02227/1.96, allocations: 8.544 MB / 0.6451 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/1.96, allocations: 0 / 0.6451 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.024e-06/1.96, allocations: 0 / 0.6451 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.816e-06/1.96, allocations: 0 / 0.6451 GB, free: 1.391 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.004821/1.965, allocations: 1.591 MB / 0.6467 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/1.965, allocations: 12.03 kB / 0.6467 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.181e-05/1.965, allocations: 8.438 kB / 0.6467 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.306e-05/1.965, allocations: 62.53 kB / 0.6467 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/1.965, allocations: 43.7 kB / 0.6468 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/1.965, allocations: 290.2 kB / 0.6471 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/1.965, allocations: 20.44 kB / 0.6471 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/1.966, allocations: 16 kB / 0.6471 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/1.966, allocations: 319.4 kB / 0.6474 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/1.966, allocations: 0 / 0.6474 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/1.966, allocations: 12 kB / 0.6474 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.389e-05/1.966, allocations: 19.92 kB / 0.6474 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/1.966, allocations: 206.3 kB / 0.6476 GB, free: 14.68 MB / 0.5294 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.04088/2.007, allocations: 18.22 MB / 0.6654 GB, free: 10.58 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/2.008, allocations: 122.5 kB / 0.6655 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/2.008, allocations: 84.83 kB / 0.6656 GB, free: 10.37 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3564/2.364, allocations: 82.87 MB / 0.7465 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/2.364, allocations: 33.06 kB / 0.7466 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.174e-06/2.364, allocations: 0 / 0.7466 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001067/2.365, allocations: 0.493 MB / 0.7471 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/2.365, allocations: 55.16 kB / 0.7471 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003044/2.365, allocations: 357.2 kB / 0.7475 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/2.365, allocations: 25.7 kB / 0.7475 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.228e-05/2.366, allocations: 189.5 kB / 0.7477 GB, free: 195 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.741e-05/2.366, allocations: 110.1 kB / 0.7478 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.337e-05/2.366, allocations: 54.48 kB / 0.7478 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.44e-05/2.366, allocations: 349.2 kB / 0.7482 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/2.366, allocations: 96.03 kB / 0.7482 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/2.366, allocations: 133.1 kB / 0.7484 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/2.366, allocations: 253.9 kB / 0.7486 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/2.366, allocations: 0 / 0.7486 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003898/2.367, allocations: 339.7 kB / 0.7489 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/2.367, allocations: 3.906 kB / 0.7489 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/2.367, allocations: 5.156 kB / 0.7489 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007803/2.367, allocations: 137.7 kB / 0.7491 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.969e-05/2.367, allocations: 11.84 kB / 0.7491 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004191/2.368, allocations: 0.6195 MB / 0.7497 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/2.368, allocations: 35.69 kB / 0.7497 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/2.368, allocations: 3.906 kB / 0.7497 GB, free: 193.8 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.0001337/2.368, allocations: 158.6 kB / 0.7499 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.797e-05/2.368, allocations: 39.52 kB / 0.7499 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006582/2.369, allocations: 0.6307 MB / 0.7505 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003537/2.369, allocations: 255.5 kB / 0.7508 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/2.369, allocations: 3.688 kB / 0.7508 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/2.369, allocations: 0.9375 kB / 0.7508 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008762/2.37, allocations: 0.8191 MB / 0.7516 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/2.37, allocations: 3.938 kB / 0.7516 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.289e-05/2.37, allocations: 18.27 kB / 0.7516 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003267/2.37, allocations: 98.3 kB / 0.7517 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/2.37, allocations: 5.781 kB / 0.7517 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000367/2.371, allocations: 0.6403 MB / 0.7523 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/2.371, allocations: 0 / 0.7523 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004295/2.371, allocations: 378.7 kB / 0.7527 GB, free: 192 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.987e-05/2.371, allocations: 128.2 kB / 0.7528 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.273e-05/2.371, allocations: 16.28 kB / 0.7528 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/2.371, allocations: 1.422 kB / 0.7528 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/2.372, allocations: 13.62 kB / 0.7528 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/2.372, allocations: 7.531 kB / 0.7528 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003007/2.372, allocations: 332.9 kB / 0.7532 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.372, allocations: 0 / 0.7532 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003058/2.375, allocations: 1.229 MB / 0.7544 GB, free: 191.1 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.005008/2.38, allocations: 2.578 MB / 0.7569 GB, free: 188.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005894/2.38, allocations: 264.5 kB / 0.7571 GB, free: 188.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/2.38, allocations: 0 / 0.7571 GB, free: 188.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002489/2.381, allocations: 110 kB / 0.7572 GB, free: 188.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007355/2.381, allocations: 128.8 kB / 0.7574 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/2.385, allocations: 3.733 MB / 0.761 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/2.386, allocations: 0.8084 MB / 0.7618 GB, free: 184.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000103/2.386, allocations: 30.86 kB / 0.7618 GB, free: 184.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/2.386, allocations: 127.4 kB / 0.7619 GB, free: 184.1 MB / 0.5919 GB Notification: Performance of SimCode: time 8.91e-07/2.386, allocations: 0 / 0.7619 GB, free: 184.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06942/2.455, allocations: 49.35 MB / 0.8101 GB, free: 135.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/16.72, allocations: 11.98 kB / 0.8102 GB, free: 135.6 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.96575594798196] Failed to read output from testmodel.py, exit status != 0: 17.0734553639777 17.081711725 15.119512409 Calling exit ...