Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.8388/0.8388, allocations: 153.8 MB / 170.9 MB, free: 13.89 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.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005056/0.0005056, allocations: 21.91 kB / 247 MB, free: 14.86 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06041/0.06092, allocations: 33.34 MB / 280.4 MB, free: 15.12 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.TestSingularPressureLoss): time 1.765/1.826, allocations: 307.3 MB / 0.5738 GB, free: 10.52 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04167/1.868, allocations: 34.64 MB / 0.6077 GB, free: 7.738 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002454/1.868, allocations: 4 kB / 0.6077 GB, free: 7.734 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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/SingularPressureLoss.mo:25:3-27: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/SingularPressureLoss.mo:28:3-29:52: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.0004262/1.869, allocations: 147 kB / 0.6078 GB, free: 7.594 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/1.869, allocations: 107.2 kB / 0.6079 GB, free: 7.488 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.02472/1.894, allocations: 9.747 MB / 0.6174 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005706/1.894, allocations: 326.5 kB / 0.6177 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/1.894, allocations: 84.66 kB / 0.6178 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/1.895, allocations: 143.4 kB / 0.618 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/1.895, allocations: 107.4 kB / 0.6181 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/1.895, allocations: 20 kB / 0.6181 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03063/1.925, allocations: 17.91 MB / 0.6356 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.871e-05/1.925, allocations: 35.86 kB / 0.6356 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001979/1.926, allocations: 135.3 kB / 0.6357 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02024/1.946, allocations: 8.423 MB / 0.644 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/1.946, allocations: 0 / 0.644 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.384e-06/1.946, allocations: 3.938 kB / 0.644 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.456e-05/1.946, allocations: 0 / 0.644 GB, free: 2.508 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00463/1.951, allocations: 1.474 MB / 0.6454 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/1.951, allocations: 12.03 kB / 0.6454 GB, free: 0.9688 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.903e-05/1.951, allocations: 4.438 kB / 0.6454 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/1.951, allocations: 66.53 kB / 0.6455 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.79e-05/1.951, allocations: 31.75 kB / 0.6455 GB, free: 0.8594 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002585/1.951, allocations: 234.5 kB / 0.6457 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/1.951, allocations: 12.44 kB / 0.6458 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.355e-05/1.951, allocations: 20 kB / 0.6458 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004362/1.952, allocations: 290.8 kB / 0.646 GB, free: 252 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/1.952, allocations: 0 / 0.646 GB, free: 252 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/1.952, allocations: 4 kB / 0.6461 GB, free: 248 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/1.952, allocations: 23.86 kB / 0.6461 GB, free: 224 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/1.952, allocations: 156.4 kB / 0.6462 GB, free: 68 kB / 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.03982/1.992, allocations: 18.1 MB / 0.6639 GB, free: 12.08 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000369/1.992, allocations: 106.5 kB / 0.664 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/1.992, allocations: 60.97 kB / 0.6641 GB, free: 11.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3339/2.326, allocations: 82.86 MB / 0.745 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/2.326, allocations: 32.06 kB / 0.745 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 2.195e-06/2.326, allocations: 0 / 0.745 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.000742/2.327, allocations: 394.3 kB / 0.7454 GB, free: 196.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.989e-05/2.327, allocations: 54.31 kB / 0.7454 GB, free: 196.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/2.327, allocations: 212.3 kB / 0.7456 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/2.327, allocations: 33.59 kB / 0.7457 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.526e-05/2.327, allocations: 150.1 kB / 0.7458 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.523e-05/2.327, allocations: 110 kB / 0.7459 GB, free: 196 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/2.327, allocations: 51.8 kB / 0.746 GB, free: 196 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.343e-05/2.327, allocations: 330.4 kB / 0.7463 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.324e-05/2.327, allocations: 71.62 kB / 0.7464 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.458e-05/2.327, allocations: 106.9 kB / 0.7465 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/2.328, allocations: 206.9 kB / 0.7467 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/2.328, allocations: 0 / 0.7467 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003157/2.328, allocations: 268.6 kB / 0.7469 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/2.328, allocations: 3.969 kB / 0.7469 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/2.328, allocations: 3.969 kB / 0.7469 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007925/2.329, allocations: 142.8 kB / 0.7471 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.345e-05/2.329, allocations: 11.59 kB / 0.7471 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000348/2.329, allocations: 0.614 MB / 0.7477 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.394e-05/2.329, allocations: 28.52 kB / 0.7477 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/2.329, allocations: 7.656 kB / 0.7477 GB, free: 194.9 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 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.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): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 8.688e-05/2.329, allocations: 136.8 kB / 0.7478 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/2.329, allocations: 23.73 kB / 0.7479 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005031/2.33, allocations: 0.5425 MB / 0.7484 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002554/2.33, allocations: 195.5 kB / 0.7486 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/2.33, allocations: 0 / 0.7486 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/2.33, allocations: 4.734 kB / 0.7486 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005617/2.331, allocations: 0.6721 MB / 0.7492 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/2.331, allocations: 0 / 0.7492 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.89e-05/2.331, allocations: 19.7 kB / 0.7493 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003083/2.331, allocations: 113.2 kB / 0.7494 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/2.331, allocations: 3.875 kB / 0.7494 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002912/2.331, allocations: 0.6245 MB / 0.75 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/2.331, allocations: 0 / 0.75 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/2.331, allocations: 309.8 kB / 0.7503 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.026e-05/2.332, allocations: 107.5 kB / 0.7504 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/2.332, allocations: 12.5 kB / 0.7504 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.059e-05/2.332, allocations: 4.812 kB / 0.7504 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/2.332, allocations: 7.922 kB / 0.7504 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/2.332, allocations: 7.734 kB / 0.7504 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001685/2.332, allocations: 229.6 kB / 0.7506 GB, free: 193 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/2.332, allocations: 4 kB / 0.7506 GB, free: 193 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002589/2.334, allocations: 1.197 MB / 0.7518 GB, free: 193 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004347/2.339, allocations: 2.496 MB / 0.7542 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000465/2.339, allocations: 197 kB / 0.7544 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/2.339, allocations: 0 / 0.7544 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/2.339, allocations: 83.27 kB / 0.7545 GB, free: 191.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006767/2.34, allocations: 117.1 kB / 0.7546 GB, free: 191 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/2.343, allocations: 2.958 MB / 0.7575 GB, free: 188.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/2.343, allocations: 0.7636 MB / 0.7582 GB, free: 187.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.971e-05/2.343, allocations: 25.86 kB / 0.7583 GB, free: 187.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.755e-05/2.343, allocations: 89.91 kB / 0.7584 GB, free: 187.5 MB / 0.5919 GB Notification: Performance of SimCode: time 5.81e-07/2.343, allocations: 0 / 0.7584 GB, free: 187.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06532/2.409, allocations: 47.6 MB / 0.8048 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/16.64, allocations: 6.703 kB / 0.8048 GB, free: 140.8 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.766013048007153] Failed to read output from testmodel.py, exit status != 0: 16.952008486026898 16.96041561 15.012420657 Calling exit ...