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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.7837/0.7837, allocations: 153.8 MB / 173.5 MB, free: 4.918 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.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004772/0.0004772, allocations: 11.98 kB / 250.6 MB, free: 4.418 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1601, allocations: 33.35 MB / 284 MB, free: 1.781 MB / 222.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.TestInvSingularPressureLoss): time 1.689/1.849, allocations: 307.1 MB / 0.5773 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0293/1.879, allocations: 34.65 MB / 0.6111 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002365/1.879, allocations: 2.5 kB / 0.6111 GB, free: 14.56 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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/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 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.0004002/1.879, allocations: 123.6 kB / 0.6112 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/1.88, allocations: 95.59 kB / 0.6113 GB, free: 14.44 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.02562/1.905, allocations: 9.809 MB / 0.6209 GB, free: 9.051 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005464/1.906, allocations: 287.6 kB / 0.6212 GB, free: 8.801 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/1.906, allocations: 86.98 kB / 0.6213 GB, free: 8.715 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/1.906, allocations: 123.5 kB / 0.6214 GB, free: 8.594 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/1.906, allocations: 99.5 kB / 0.6215 GB, free: 8.496 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/1.906, allocations: 16 kB / 0.6215 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03249/1.939, allocations: 17.92 MB / 0.639 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.393e-05/1.939, allocations: 35.86 kB / 0.639 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001699/1.939, allocations: 119.3 kB / 0.6391 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0209/1.96, allocations: 8.392 MB / 0.6473 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/1.96, allocations: 0 / 0.6473 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.643e-06/1.96, allocations: 0 / 0.6473 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.168e-06/1.96, allocations: 0 / 0.6473 GB, free: 13.98 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.00408/1.964, allocations: 1.38 MB / 0.6487 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/1.964, allocations: 12.03 kB / 0.6487 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.402e-05/1.964, allocations: 9.031 kB / 0.6487 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.176e-05/1.964, allocations: 58.48 kB / 0.6488 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.513e-05/1.964, allocations: 31.81 kB / 0.6488 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/1.964, allocations: 165.8 kB / 0.6489 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/1.964, allocations: 12.38 kB / 0.649 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/1.964, allocations: 20 kB / 0.649 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/1.965, allocations: 268.5 kB / 0.6492 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/1.965, allocations: 0.8438 kB / 0.6492 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/1.965, allocations: 8 kB / 0.6492 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/1.965, allocations: 8 kB / 0.6492 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/1.965, allocations: 144.4 kB / 0.6494 GB, free: 11.79 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.01795/1.983, allocations: 6.084 MB / 0.6553 GB, free: 5.586 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/1.983, allocations: 70.48 kB / 0.6554 GB, free: 5.508 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/1.983, allocations: 48.89 kB / 0.6554 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1418/2.125, allocations: 43.42 MB / 0.6978 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/2.125, allocations: 30.56 kB / 0.6979 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.535e-06/2.125, allocations: 1.219 kB / 0.6979 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005689/2.126, allocations: 211.3 kB / 0.6981 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/2.126, allocations: 59.34 kB / 0.6981 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/2.126, allocations: 224.1 kB / 0.6983 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/2.126, allocations: 29.7 kB / 0.6984 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.857e-05/2.126, allocations: 140.4 kB / 0.6985 GB, free: 9.273 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.962e-05/2.126, allocations: 79.3 kB / 0.6986 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.936e-05/2.126, allocations: 45.7 kB / 0.6986 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001393/2.127, allocations: 330.8 kB / 0.6989 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/2.127, allocations: 51.98 kB / 0.699 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/2.127, allocations: 88.27 kB / 0.6991 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/2.127, allocations: 156.2 kB / 0.6992 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/2.127, allocations: 0 / 0.6992 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003655/2.127, allocations: 202.8 kB / 0.6994 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/2.127, allocations: 8.781 kB / 0.6994 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/2.127, allocations: 0 / 0.6994 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/2.127, allocations: 4 kB / 0.6994 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007233/2.128, allocations: 100 kB / 0.6995 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/2.128, allocations: 5.5 kB / 0.6995 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/2.128, allocations: 27.73 kB / 0.6996 GB, free: 8.148 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/2.128, allocations: 8 kB / 0.6996 GB, free: 8.141 MB / 0.5606 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 0.000121/2.128, allocations: 134.6 kB / 0.6997 GB, free: 8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.142e-05/2.129, allocations: 23.8 kB / 0.6997 GB, free: 7.977 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004673/2.129, allocations: 330.2 kB / 0.7 GB, free: 7.617 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002508/2.129, allocations: 158.3 kB / 0.7002 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/2.129, allocations: 0 / 0.7002 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/2.129, allocations: 3.984 kB / 0.7002 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008564/2.13, allocations: 0.582 MB / 0.7008 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/2.13, allocations: 0 / 0.7008 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005376/2.131, allocations: 88.92 kB / 0.7008 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/2.131, allocations: 8.031 kB / 0.7008 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/2.131, allocations: 7.984 kB / 0.7009 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/2.131, allocations: 8.688 kB / 0.7009 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/2.131, allocations: 1.5 kB / 0.7009 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/2.131, allocations: 286.5 kB / 0.7011 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/2.131, allocations: 35.78 kB / 0.7012 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/2.131, allocations: 11.98 kB / 0.7012 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/2.131, allocations: 4 kB / 0.7012 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/2.131, allocations: 7.984 kB / 0.7012 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/2.131, allocations: 8.688 kB / 0.7012 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002091/2.132, allocations: 206 kB / 0.7014 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.132, allocations: 0 / 0.7014 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002854/2.134, allocations: 1.196 MB / 0.7026 GB, free: 4.945 MB / 0.5606 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.005913/2.14, allocations: 2.465 MB / 0.705 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004081/2.141, allocations: 169.6 kB / 0.7051 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/2.141, allocations: 0 / 0.7051 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00014/2.141, allocations: 68.67 kB / 0.7052 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/2.141, allocations: 94.3 kB / 0.7053 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004213/2.146, allocations: 2.852 MB / 0.7081 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/2.146, allocations: 0.7544 MB / 0.7088 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001018/2.146, allocations: 28.39 kB / 0.7088 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/2.146, allocations: 83.41 kB / 0.7089 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/2.146, allocations: 4 kB / 0.7089 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08286/2.229, allocations: 46.56 MB / 0.7544 GB, free: 392 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/14.77, allocations: 20.39 kB / 0.7544 GB, free: 376 kB / 0.6075 GB " [Timeout remaining time 645] (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: 16.749005654943176] Failed to read output from testmodel.py, exit status != 0: 15.285050504026003 15.29553603 13.333307107 Calling exit ...