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.5843/0.5843, 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 3.016e-06/3.016e-06, allocations: 0.7969 kB / 216.7 MB, free: 8.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/2.137e-05, allocations: 2.281 kB / 216.7 MB, free: 8.629 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.8 MB, free: 9.004 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2661/1.279, allocations: 30.47 MB / 0.4896 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/1.279, allocations: 2.688 kB / 0.4896 GB, free: 0.9219 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.000357/1.279, allocations: 99.14 kB / 0.4897 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/1.28, allocations: 92.06 kB / 0.4897 GB, free: 0.9219 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.02284/1.302, allocations: 9.771 MB / 0.4993 GB, free: 15.19 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004881/1.303, allocations: 286.9 kB / 0.4996 GB, free: 15.09 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/1.303, allocations: 84.44 kB / 0.4996 GB, free: 15.06 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/1.303, allocations: 184 kB / 0.4998 GB, free: 15 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/1.303, allocations: 68.16 kB / 0.4999 GB, free: 14.98 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/1.303, allocations: 18.22 kB / 0.4999 GB, free: 14.98 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02982/1.333, allocations: 16.79 MB / 0.5163 GB, free: 3.496 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/1.333, allocations: 39.84 kB / 0.5163 GB, free: 3.461 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002049/1.334, allocations: 78.28 kB / 0.5164 GB, free: 3.391 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02064/1.354, allocations: 10.76 MB / 0.5269 GB, free: 9.117 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/1.354, allocations: 0 / 0.5269 GB, free: 9.117 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.716e-06/1.354, allocations: 0 / 0.5269 GB, free: 9.117 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.936e-06/1.354, allocations: 0.75 kB / 0.5269 GB, free: 9.117 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.004672/1.359, allocations: 1.364 MB / 0.5282 GB, free: 7.719 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/1.359, allocations: 17.75 kB / 0.5283 GB, free: 7.703 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/1.359, allocations: 58.53 kB / 0.5283 GB, free: 7.637 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/1.359, allocations: 28.38 kB / 0.5283 GB, free: 7.609 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/1.359, allocations: 162.3 kB / 0.5285 GB, free: 7.426 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/1.359, allocations: 16.38 kB / 0.5285 GB, free: 7.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/1.359, allocations: 16.78 kB / 0.5285 GB, free: 7.395 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/1.36, allocations: 267.2 kB / 0.5288 GB, free: 7.113 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/1.36, allocations: 4.781 kB / 0.5288 GB, free: 7.109 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/1.36, allocations: 8 kB / 0.5288 GB, free: 7.102 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/1.36, allocations: 13.58 kB / 0.5288 GB, free: 7.09 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/1.36, allocations: 148.1 kB / 0.529 GB, free: 6.945 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.009992/1.37, allocations: 5.844 MB / 0.5347 GB, free: 1.211 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/1.37, allocations: 66.56 kB / 0.5347 GB, free: 1.137 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.995e-05/1.37, allocations: 50 kB / 0.5348 GB, free: 1.086 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07194/1.442, allocations: 43.57 MB / 0.5773 GB, free: 5.492 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/1.442, allocations: 34.56 kB / 0.5774 GB, free: 5.449 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=22): time 3.056e-06/1.442, allocations: 0 / 0.5774 GB, free: 5.449 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22): time 0.0004467/1.443, allocations: 201.4 kB / 0.5775 GB, free: 5.246 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/1.443, allocations: 52.16 kB / 0.5776 GB, free: 5.184 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/1.443, allocations: 240 kB / 0.5778 GB, free: 4.938 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/1.443, allocations: 29.64 kB / 0.5779 GB, free: 4.902 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.086e-05/1.443, allocations: 136.5 kB / 0.578 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/1.443, allocations: 73.88 kB / 0.5781 GB, free: 4.695 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/1.443, allocations: 45.59 kB / 0.5781 GB, free: 4.645 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.827e-05/1.443, allocations: 338.8 kB / 0.5784 GB, free: 4.305 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.675e-05/1.443, allocations: 51.98 kB / 0.5785 GB, free: 4.254 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.434e-05/1.443, allocations: 89.48 kB / 0.5786 GB, free: 4.152 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/1.443, allocations: 156.2 kB / 0.5787 GB, free: 3.984 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/1.443, allocations: 0 / 0.5787 GB, free: 3.984 MB / 0.5105 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002151/1.444, allocations: 208.3 kB / 0.5789 GB, free: 3.777 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/1.444, allocations: 4 kB / 0.5789 GB, free: 3.773 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/1.444, allocations: 4.703 kB / 0.5789 GB, free: 3.77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/1.444, allocations: 0.75 kB / 0.5789 GB, free: 3.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/1.444, allocations: 100.6 kB / 0.579 GB, free: 3.672 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/1.444, allocations: 0 / 0.579 GB, free: 3.672 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.348e-05/1.444, allocations: 35.7 kB / 0.579 GB, free: 3.637 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/1.444, allocations: 4 kB / 0.579 GB, free: 3.633 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 8.852e-05/1.444, allocations: 133.8 kB / 0.5792 GB, free: 3.492 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.721e-05/1.444, allocations: 24.42 kB / 0.5792 GB, free: 3.469 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003206/1.445, allocations: 335.7 kB / 0.5795 GB, free: 3.105 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001473/1.445, allocations: 155.3 kB / 0.5797 GB, free: 2.949 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/1.445, allocations: 4.5 kB / 0.5797 GB, free: 2.945 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/1.445, allocations: 0 / 0.5797 GB, free: 2.945 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005352/1.445, allocations: 0.5577 MB / 0.5802 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/1.445, allocations: 0.875 kB / 0.5802 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002689/1.446, allocations: 91.92 kB / 0.5803 GB, free: 2.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/1.446, allocations: 7.984 kB / 0.5803 GB, free: 2.242 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/1.446, allocations: 3.938 kB / 0.5803 GB, free: 2.238 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/1.446, allocations: 2.344 kB / 0.5803 GB, free: 2.238 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.446, allocations: 9.875 kB / 0.5803 GB, free: 2.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/1.446, allocations: 285.4 kB / 0.5806 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/1.446, allocations: 35.78 kB / 0.5806 GB, free: 1.898 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/1.446, allocations: 8.562 kB / 0.5806 GB, free: 1.891 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.148e-05/1.446, allocations: 8 kB / 0.5806 GB, free: 1.883 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.436e-05/1.446, allocations: 3.984 kB / 0.5807 GB, free: 1.879 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-06/1.446, allocations: 4 kB / 0.5807 GB, free: 1.875 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001424/1.446, allocations: 205.2 kB / 0.5809 GB, free: 1.676 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6e-08/1.446, allocations: 0 / 0.5809 GB, free: 1.676 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002756/1.449, allocations: 1.193 MB / 0.582 GB, free: 492 kB / 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.004447/1.453, allocations: 2.64 MB / 0.5846 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000345/1.454, allocations: 173.7 kB / 0.5848 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.454, allocations: 4.062 kB / 0.5848 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 7.635e-05/1.454, allocations: 63.91 kB / 0.5848 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/1.454, allocations: 96.14 kB / 0.5849 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/1.457, allocations: 2.832 MB / 0.5877 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.614e-05/1.457, allocations: 142.9 kB / 0.5878 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 8.645e-05/1.457, allocations: 35.58 kB / 0.5879 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.5e-05/1.457, allocations: 84.47 kB / 0.5879 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of SimCode: time 8.42e-07/1.457, allocations: 0 / 0.5879 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06592/1.523, allocations: 47.49 MB / 0.6343 GB, free: 11.34 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.495/11.02, allocations: 9.297 kB / 0.6343 GB, free: 11.33 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 & /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: 12.466116635128856] Failed to read output from testmodel.py, exit status != 0: 11.380323693156242 11.286060385 9.929741784 Calling exit ...