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.8862/0.8862, allocations: 153.8 MB / 170.9 MB, free: 13.73 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.0005068/0.0005068, allocations: 20.36 kB / 247 MB, free: 14.88 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0697/0.07021, allocations: 33.34 MB / 280.4 MB, free: 15.13 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.TestInvSingularPressureLoss): time 1.741/1.811, allocations: 307.1 MB / 0.5737 GB, free: 10.71 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04677/1.858, allocations: 34.6 MB / 0.6075 GB, free: 7.973 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002205/1.858, allocations: 4 kB / 0.6075 GB, free: 7.969 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.0005353/1.859, allocations: 138.9 kB / 0.6076 GB, free: 7.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000359/1.859, allocations: 87.33 kB / 0.6077 GB, free: 7.75 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.02704/1.886, allocations: 9.732 MB / 0.6172 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004988/1.887, allocations: 282.5 kB / 0.6175 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/1.887, allocations: 80.33 kB / 0.6176 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/1.887, allocations: 127.5 kB / 0.6177 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/1.887, allocations: 91.52 kB / 0.6178 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/1.887, allocations: 16 kB / 0.6178 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03113/1.919, allocations: 17.91 MB / 0.6353 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.048e-05/1.919, allocations: 43.83 kB / 0.6353 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000179/1.919, allocations: 115.4 kB / 0.6354 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02223/1.941, allocations: 8.396 MB / 0.6436 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/1.941, allocations: 0 / 0.6436 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.893e-06/1.941, allocations: 0 / 0.6436 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.866e-06/1.941, allocations: 0 / 0.6436 GB, free: 2.91 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.004237/1.945, allocations: 1.448 MB / 0.6451 GB, free: 1.402 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/1.945, allocations: 8.031 kB / 0.6451 GB, free: 1.395 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.676e-05/1.945, allocations: 8.375 kB / 0.6451 GB, free: 1.387 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.612e-05/1.945, allocations: 62.47 kB / 0.6451 GB, free: 1.316 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/1.946, allocations: 31.8 kB / 0.6452 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002292/1.946, allocations: 222.7 kB / 0.6454 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/1.946, allocations: 16.38 kB / 0.6454 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/1.946, allocations: 19.94 kB / 0.6454 GB, free: 0.9922 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004266/1.946, allocations: 256.1 kB / 0.6456 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/1.946, allocations: 4 kB / 0.6457 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/1.946, allocations: 12 kB / 0.6457 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/1.946, allocations: 11.92 kB / 0.6457 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002928/1.947, allocations: 144.4 kB / 0.6458 GB, free: 0.5508 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.0207/1.967, allocations: 9.555 MB / 0.6551 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/1.967, allocations: 70.5 kB / 0.6552 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.931e-05/1.968, allocations: 45.06 kB / 0.6553 GB, free: 5.895 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3496/2.317, allocations: 82.86 MB / 0.7362 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/2.317, allocations: 37.12 kB / 0.7362 GB, free: 201.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 1.923e-06/2.317, allocations: 0 / 0.7362 GB, free: 201.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005085/2.318, allocations: 204.4 kB / 0.7364 GB, free: 201.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/2.318, allocations: 53.94 kB / 0.7364 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/2.318, allocations: 232.9 kB / 0.7367 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/2.318, allocations: 25.7 kB / 0.7367 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.64e-05/2.318, allocations: 138.8 kB / 0.7368 GB, free: 201.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/2.318, allocations: 79.52 kB / 0.7369 GB, free: 201.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/2.318, allocations: 38.58 kB / 0.7369 GB, free: 201.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.572e-05/2.318, allocations: 334.7 kB / 0.7373 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.79e-05/2.318, allocations: 54.91 kB / 0.7373 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/2.318, allocations: 87.44 kB / 0.7374 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/2.319, allocations: 159 kB / 0.7375 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/2.319, allocations: 2.344 kB / 0.7375 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002923/2.319, allocations: 196.8 kB / 0.7377 GB, free: 201 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/2.319, allocations: 6.734 kB / 0.7377 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/2.319, allocations: 1.906 kB / 0.7377 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/2.319, allocations: 2.719 kB / 0.7377 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000643/2.32, allocations: 108.2 kB / 0.7379 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/2.32, allocations: 0 / 0.7379 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/2.32, allocations: 31.58 kB / 0.7379 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/2.32, allocations: 5.703 kB / 0.7379 GB, free: 201 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.332e-05/2.32, allocations: 138.1 kB / 0.738 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.925e-05/2.32, allocations: 20.61 kB / 0.738 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003887/2.32, allocations: 326.4 kB / 0.7383 GB, free: 200.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001985/2.32, allocations: 150.5 kB / 0.7385 GB, free: 200.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/2.32, allocations: 2.625 kB / 0.7385 GB, free: 200.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/2.32, allocations: 0 / 0.7385 GB, free: 200.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006583/2.321, allocations: 0.6044 MB / 0.7391 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/2.321, allocations: 4.297 kB / 0.7391 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/2.322, allocations: 95.44 kB / 0.7392 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/2.322, allocations: 6.938 kB / 0.7392 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/2.322, allocations: 7.219 kB / 0.7392 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/2.322, allocations: 5.156 kB / 0.7392 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/2.322, allocations: 0 / 0.7392 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003132/2.322, allocations: 285.3 kB / 0.7395 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.602e-05/2.322, allocations: 107.2 kB / 0.7396 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/2.322, allocations: 10.59 kB / 0.7396 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/2.322, allocations: 6.578 kB / 0.7396 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.528e-05/2.322, allocations: 10.28 kB / 0.7396 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-06/2.322, allocations: 6.141 kB / 0.7396 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001464/2.322, allocations: 207.2 kB / 0.7398 GB, free: 200 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.322, allocations: 0 / 0.7398 GB, free: 200 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002937/2.325, allocations: 1.193 MB / 0.741 GB, free: 200 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.004805/2.33, allocations: 2.472 MB / 0.7434 GB, free: 199.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003976/2.33, allocations: 178.2 kB / 0.7436 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/2.33, allocations: 0 / 0.7436 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/2.331, allocations: 59.77 kB / 0.7436 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006038/2.331, allocations: 97.53 kB / 0.7437 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/2.334, allocations: 2.842 MB / 0.7465 GB, free: 197.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/2.334, allocations: 0.7577 MB / 0.7472 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.851e-05/2.334, allocations: 20.92 kB / 0.7472 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.674e-05/2.335, allocations: 85.55 kB / 0.7473 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of SimCode: time 3.51e-07/2.335, allocations: 0 / 0.7473 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.062/2.397, allocations: 46.28 MB / 0.7925 GB, free: 153.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/12.92, allocations: 26.56 kB / 0.7925 GB, free: 153.8 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.90491236798698] Failed to read output from testmodel.py, exit status != 0: 13.237905898015015 13.246308481 11.303120932 Calling exit ...