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.5733/0.5733, allocations: 120.4 MB / 139.5 MB, free: 13 MB / 138.7 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="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 2.415e-06/2.415e-06, allocations: 0 / 216.7 MB, free: 8.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.08e-05/2.321e-05, allocations: 3.812 kB / 216.7 MB, free: 8.637 MB / 202.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.TestInvSingularPressureLoss): time 1.013/1.013, allocations: 254.1 MB / 470.9 MB, free: 9.027 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2863/1.299, allocations: 30.46 MB / 0.4896 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/1.299, allocations: 3.719 kB / 0.4896 GB, free: 0.9805 MB / 442.7 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.000366/1.299, allocations: 97.23 kB / 0.4897 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001687/1.3, allocations: 93.97 kB / 0.4897 GB, free: 0.9805 MB / 442.7 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.0238/1.323, allocations: 9.758 MB / 0.4993 GB, free: 15.27 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005181/1.324, allocations: 296 kB / 0.4996 GB, free: 15.16 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/1.324, allocations: 85.14 kB / 0.4996 GB, free: 15.14 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/1.324, allocations: 186.6 kB / 0.4998 GB, free: 15.08 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/1.325, allocations: 67.3 kB / 0.4999 GB, free: 15.05 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/1.325, allocations: 18.34 kB / 0.4999 GB, free: 15.05 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02789/1.353, allocations: 16.78 MB / 0.5163 GB, free: 3.543 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/1.353, allocations: 45.23 kB / 0.5163 GB, free: 3.504 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/1.353, allocations: 77.36 kB / 0.5164 GB, free: 3.434 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02427/1.377, allocations: 10.77 MB / 0.5269 GB, free: 9.152 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/1.377, allocations: 0.625 kB / 0.5269 GB, free: 9.152 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.377, allocations: 0.5312 kB / 0.5269 GB, free: 9.152 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.155e-06/1.377, allocations: 1.125 kB / 0.5269 GB, free: 9.152 MB / 474.7 MB 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.004306/1.381, allocations: 1.362 MB / 0.5283 GB, free: 7.754 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/1.382, allocations: 12.03 kB / 0.5283 GB, free: 7.742 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.335e-05/1.382, allocations: 59.2 kB / 0.5283 GB, free: 7.676 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/1.382, allocations: 29.12 kB / 0.5283 GB, free: 7.648 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/1.382, allocations: 163.6 kB / 0.5285 GB, free: 7.465 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/1.382, allocations: 13.78 kB / 0.5285 GB, free: 7.453 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/1.382, allocations: 20 kB / 0.5285 GB, free: 7.434 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003262/1.382, allocations: 264.6 kB / 0.5288 GB, free: 7.152 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/1.382, allocations: 0 / 0.5288 GB, free: 7.152 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/1.382, allocations: 10.69 kB / 0.5288 GB, free: 7.145 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/1.382, allocations: 15.98 kB / 0.5288 GB, free: 7.129 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/1.382, allocations: 144.9 kB / 0.529 GB, free: 6.988 MB / 474.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.01001/1.392, allocations: 5.853 MB / 0.5347 GB, free: 1.23 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/1.393, allocations: 66.55 kB / 0.5347 GB, free: 1.156 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.817e-05/1.393, allocations: 46.48 kB / 0.5348 GB, free: 1.109 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07243/1.465, allocations: 43.56 MB / 0.5773 GB, free: 5.52 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/1.465, allocations: 38.5 kB / 0.5774 GB, free: 5.473 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=22): time 2.585e-06/1.465, allocations: 0 / 0.5774 GB, free: 5.473 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22): time 0.0004632/1.466, allocations: 209.4 kB / 0.5776 GB, free: 5.262 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/1.466, allocations: 51.97 kB / 0.5776 GB, free: 5.199 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/1.466, allocations: 236 kB / 0.5778 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/1.466, allocations: 29.7 kB / 0.5779 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.95e-05/1.466, allocations: 136.5 kB / 0.578 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/1.466, allocations: 70.05 kB / 0.5781 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-05/1.466, allocations: 45.66 kB / 0.5781 GB, free: 4.668 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001041/1.466, allocations: 331.6 kB / 0.5784 GB, free: 4.336 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.637e-05/1.466, allocations: 51.98 kB / 0.5785 GB, free: 4.285 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.771e-05/1.466, allocations: 97.17 kB / 0.5786 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/1.466, allocations: 160.2 kB / 0.5787 GB, free: 4.004 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.466, allocations: 0 / 0.5787 GB, free: 4.004 MB / 0.5105 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000228/1.467, allocations: 204.4 kB / 0.5789 GB, free: 3.801 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/1.467, allocations: 4 kB / 0.5789 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/1.467, allocations: 12 kB / 0.5789 GB, free: 3.785 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/1.467, allocations: 5.312 kB / 0.5789 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/1.467, allocations: 95.88 kB / 0.579 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/1.467, allocations: 0 / 0.579 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.384e-05/1.467, allocations: 23.78 kB / 0.579 GB, free: 3.664 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/1.467, allocations: 12.88 kB / 0.5791 GB, free: 3.652 MB / 0.5105 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.0001021/1.467, allocations: 134.9 kB / 0.5792 GB, free: 3.512 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/1.467, allocations: 27.73 kB / 0.5792 GB, free: 3.484 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003583/1.468, allocations: 338 kB / 0.5795 GB, free: 3.117 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000153/1.468, allocations: 148.9 kB / 0.5797 GB, free: 2.969 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.468, allocations: 0 / 0.5797 GB, free: 2.969 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/1.468, allocations: 3.984 kB / 0.5797 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005762/1.468, allocations: 0.5529 MB / 0.5802 GB, free: 2.363 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/1.468, allocations: 0 / 0.5802 GB, free: 2.363 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/1.469, allocations: 100.4 kB / 0.5803 GB, free: 2.266 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/1.469, allocations: 4.891 kB / 0.5803 GB, free: 2.262 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/1.469, allocations: 4.031 kB / 0.5803 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/1.469, allocations: 0 / 0.5803 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.469, allocations: 8.5 kB / 0.5803 GB, free: 2.25 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/1.469, allocations: 281.5 kB / 0.5806 GB, free: 1.957 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/1.469, allocations: 31.78 kB / 0.5806 GB, free: 1.926 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/1.469, allocations: 8 kB / 0.5806 GB, free: 1.918 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.105e-05/1.469, allocations: 9.047 kB / 0.5806 GB, free: 1.91 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.042e-05/1.469, allocations: 7.922 kB / 0.5806 GB, free: 1.902 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/1.469, allocations: 8 kB / 0.5807 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000132/1.469, allocations: 209.2 kB / 0.5809 GB, free: 1.691 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.1e-08/1.469, allocations: 0 / 0.5809 GB, free: 1.691 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002771/1.472, allocations: 1.189 MB / 0.582 GB, free: 0.5 MB / 0.5105 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.004261/1.476, allocations: 2.633 MB / 0.5846 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003374/1.477, allocations: 184.7 kB / 0.5848 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.477, allocations: 0 / 0.5848 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 8.326e-05/1.477, allocations: 65.66 kB / 0.5848 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/1.477, allocations: 103.3 kB / 0.5849 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002797/1.48, allocations: 2.832 MB / 0.5877 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.61e-05/1.48, allocations: 146.9 kB / 0.5878 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 9.18e-05/1.48, allocations: 27.72 kB / 0.5879 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.798e-05/1.48, allocations: 84.47 kB / 0.5879 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of SimCode: time 1.343e-06/1.48, allocations: 4 kB / 0.5879 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07014/1.55, allocations: 47.49 MB / 0.6343 GB, free: 11.36 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.379/10.93, allocations: 7.922 kB / 0.6343 GB, free: 11.35 MB / 0.573 GB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.486651583574712] Failed to read output from testmodel.py, exit status != 0: 11.306154443882406 11.212244764 9.832251706 Calling exit ...