Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.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.8272/0.8272, allocations: 152.6 MB / 168.9 MB, free: 15.06 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.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005061/0.0005061, allocations: 15.86 kB / 244.5 MB, free: 15.94 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05753/0.05803, allocations: 33.06 MB / 277.5 MB, free: 1.152 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.TestInvSingularPressureLoss): time 1.71/1.768, allocations: 300.9 MB / 0.5649 GB, free: 2.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04581/1.814, allocations: 34.53 MB / 0.5986 GB, free: 180 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/1.814, allocations: 4 kB / 0.5986 GB, free: 176 kB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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/InvSingularPressureLoss.mo:26:3-28:16: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/InvSingularPressureLoss.mo:29:3-30:83: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.0004854/1.815, allocations: 119.4 kB / 0.5987 GB, free: 56 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003191/1.815, allocations: 87.33 kB / 0.5988 GB, free: 15.97 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.02541/1.841, allocations: 9.731 MB / 0.6083 GB, free: 6.219 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004976/1.841, allocations: 270.7 kB / 0.6086 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/1.841, allocations: 96.06 kB / 0.6087 GB, free: 5.859 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002103/1.842, allocations: 119.5 kB / 0.6088 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/1.842, allocations: 103.5 kB / 0.6089 GB, free: 5.641 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/1.842, allocations: 16 kB / 0.6089 GB, free: 5.625 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03105/1.873, allocations: 17.9 MB / 0.6264 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.239e-05/1.873, allocations: 35.86 kB / 0.6264 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001849/1.873, allocations: 115.4 kB / 0.6265 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01961/1.893, allocations: 8.38 MB / 0.6347 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/1.893, allocations: 0 / 0.6347 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.402e-06/1.893, allocations: 0 / 0.6347 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.595e-06/1.893, allocations: 0 / 0.6347 GB, free: 11.16 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00388/1.897, allocations: 1.466 MB / 0.6361 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/1.897, allocations: 12.03 kB / 0.6362 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.846e-05/1.897, allocations: 58.55 kB / 0.6362 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.201e-05/1.897, allocations: 27.8 kB / 0.6362 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/1.897, allocations: 218.7 kB / 0.6364 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/1.897, allocations: 12.38 kB / 0.6365 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/1.897, allocations: 20 kB / 0.6365 GB, free: 9.246 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/1.897, allocations: 262 kB / 0.6367 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/1.897, allocations: 4 kB / 0.6367 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/1.897, allocations: 4 kB / 0.6367 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/1.897, allocations: 15.94 kB / 0.6367 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/1.898, allocations: 144.4 kB / 0.6369 GB, free: 8.805 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.01966/1.917, allocations: 9.554 MB / 0.6462 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/1.918, allocations: 62.55 kB / 0.6463 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.875e-05/1.918, allocations: 52.88 kB / 0.6463 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3346/2.252, allocations: 77.72 MB / 0.7222 GB, free: 216.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/2.252, allocations: 40.47 kB / 0.7223 GB, free: 216.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.555e-06/2.252, allocations: 0 / 0.7223 GB, free: 216.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.000509/2.253, allocations: 200.5 kB / 0.7225 GB, free: 216.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/2.253, allocations: 54.22 kB / 0.7225 GB, free: 216.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/2.253, allocations: 235.5 kB / 0.7227 GB, free: 216.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.779e-06/2.253, allocations: 25.7 kB / 0.7228 GB, free: 216.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/2.253, allocations: 147.8 kB / 0.7229 GB, free: 216.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.227e-05/2.253, allocations: 77.36 kB / 0.723 GB, free: 216.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.444e-05/2.253, allocations: 42.45 kB / 0.723 GB, free: 216.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.637e-05/2.253, allocations: 335.3 kB / 0.7233 GB, free: 215.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.108e-05/2.253, allocations: 47.23 kB / 0.7234 GB, free: 215.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/2.253, allocations: 89.8 kB / 0.7235 GB, free: 215.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/2.254, allocations: 157.5 kB / 0.7236 GB, free: 215.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/2.254, allocations: 0 / 0.7236 GB, free: 215.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002715/2.254, allocations: 197.7 kB / 0.7238 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/2.254, allocations: 9.625 kB / 0.7238 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/2.254, allocations: 6.312 kB / 0.7238 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/2.254, allocations: 0 / 0.7238 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005789/2.255, allocations: 90.41 kB / 0.7239 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/2.255, allocations: 8.141 kB / 0.7239 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/2.255, allocations: 32.8 kB / 0.7239 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/2.255, allocations: 5.906 kB / 0.7239 GB, free: 215.7 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 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.16e-05/2.255, allocations: 129.8 kB / 0.7241 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/2.255, allocations: 23.83 kB / 0.7241 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003501/2.255, allocations: 323.8 kB / 0.7244 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001826/2.255, allocations: 158.3 kB / 0.7246 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/2.255, allocations: 1.844 kB / 0.7246 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/2.255, allocations: 5.766 kB / 0.7246 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006213/2.256, allocations: 0.5983 MB / 0.7251 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/2.256, allocations: 0 / 0.7251 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/2.256, allocations: 99.55 kB / 0.7252 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/2.256, allocations: 2.562 kB / 0.7252 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/2.256, allocations: 8.938 kB / 0.7252 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/2.256, allocations: 3.422 kB / 0.7253 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/2.256, allocations: 0 / 0.7253 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003065/2.257, allocations: 291.4 kB / 0.7255 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.546e-05/2.257, allocations: 111.2 kB / 0.7256 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/2.257, allocations: 6 kB / 0.7256 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/2.257, allocations: 5.641 kB / 0.7256 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.863e-05/2.257, allocations: 11.77 kB / 0.7257 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/2.257, allocations: 2.844 kB / 0.7257 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001391/2.257, allocations: 211.6 kB / 0.7259 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.257, allocations: 4 kB / 0.7259 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002546/2.26, allocations: 1.189 MB / 0.727 GB, free: 214.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004191/2.264, allocations: 2.461 MB / 0.7294 GB, free: 213.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003771/2.264, allocations: 171.8 kB / 0.7296 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/2.264, allocations: 4.25 kB / 0.7296 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001212/2.264, allocations: 65.52 kB / 0.7297 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/2.265, allocations: 97.97 kB / 0.7298 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/2.268, allocations: 2.834 MB / 0.7325 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/2.268, allocations: 0.7517 MB / 0.7333 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001135/2.268, allocations: 28.45 kB / 0.7333 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.839e-05/2.268, allocations: 84.84 kB / 0.7334 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of SimCode: time 4.7e-07/2.268, allocations: 0 / 0.7334 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0705/2.339, allocations: 46.15 MB / 0.7784 GB, free: 173.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/12.76, allocations: 4.75 kB / 0.7784 GB, free: 173.7 MB / 0.5919 GB " [Timeout remaining time 647] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.51323139667511] Failed to read output from testmodel.py, exit status != 0: 13.009948561899364 13.020494131 11.125567784 Calling exit ...