Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.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.8302/0.8302, allocations: 153.8 MB / 173.4 MB, free: 4.875 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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005007/0.0005007, allocations: 15.97 kB / 250.6 MB, free: 4.414 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1827, allocations: 33.35 MB / 283.9 MB, free: 1.758 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.TestPipePressureLoss): time 1.844/2.026, allocations: 307.2 MB / 0.5773 GB, free: 17.29 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02993/2.056, allocations: 30.5 MB / 0.6071 GB, free: 2.832 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003697/2.057, allocations: 2.625 kB / 0.6071 GB, free: 2.832 MB / 478.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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0004733/2.057, allocations: 104.4 kB / 0.6072 GB, free: 2.789 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002581/2.057, allocations: 117.4 kB / 0.6073 GB, free: 2.707 MB / 478.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.02784/2.085, allocations: 9.686 MB / 0.6167 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006713/2.086, allocations: 354.2 kB / 0.6171 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/2.086, allocations: 89.39 kB / 0.6171 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/2.086, allocations: 160.1 kB / 0.6173 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/2.086, allocations: 107.5 kB / 0.6174 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/2.086, allocations: 16.72 kB / 0.6174 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03347/2.12, allocations: 17.66 MB / 0.6347 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.204e-05/2.12, allocations: 43.8 kB / 0.6347 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001872/2.12, allocations: 107.5 kB / 0.6348 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02258/2.143, allocations: 8.451 MB / 0.6431 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/2.143, allocations: 0 / 0.6431 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/2.143, allocations: 0 / 0.6431 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.548e-06/2.143, allocations: 0.8438 kB / 0.6431 GB, free: 2.148 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.004097/2.147, allocations: 1.405 MB / 0.6444 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/2.147, allocations: 8.031 kB / 0.6444 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.338e-05/2.147, allocations: 16.38 kB / 0.6445 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.093e-05/2.147, allocations: 62.53 kB / 0.6445 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.946e-05/2.147, allocations: 29.12 kB / 0.6445 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/2.147, allocations: 184.7 kB / 0.6447 GB, free: 388 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/2.147, allocations: 13 kB / 0.6447 GB, free: 376 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/2.147, allocations: 20 kB / 0.6448 GB, free: 356 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004571/2.148, allocations: 292.3 kB / 0.645 GB, free: 40 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/2.148, allocations: 3.938 kB / 0.645 GB, free: 36 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/2.148, allocations: 8.844 kB / 0.645 GB, free: 28 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/2.148, allocations: 15.98 kB / 0.6451 GB, free: 12 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/2.148, allocations: 173.1 kB / 0.6452 GB, free: 15.84 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.03551/2.184, allocations: 10.83 MB / 0.6558 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/2.184, allocations: 111.5 kB / 0.6559 GB, free: 4.816 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/2.184, allocations: 68.84 kB / 0.656 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1448/2.329, allocations: 43.58 MB / 0.6985 GB, free: 9.129 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/2.329, allocations: 39.5 kB / 0.6986 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.244e-06/2.329, allocations: 0 / 0.6986 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001047/2.33, allocations: 376.4 kB / 0.6989 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/2.33, allocations: 51.41 kB / 0.699 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/2.33, allocations: 219.1 kB / 0.6992 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/2.33, allocations: 29.7 kB / 0.6992 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/2.33, allocations: 144.8 kB / 0.6994 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.597e-05/2.33, allocations: 118.9 kB / 0.6995 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-05/2.331, allocations: 53.66 kB / 0.6995 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001505/2.331, allocations: 338.8 kB / 0.6998 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/2.331, allocations: 76.62 kB / 0.6999 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/2.331, allocations: 125.1 kB / 0.7 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/2.331, allocations: 204.8 kB / 0.7002 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/2.331, allocations: 0 / 0.7002 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004369/2.332, allocations: 301.8 kB / 0.7005 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/2.332, allocations: 4.938 kB / 0.7005 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/2.332, allocations: 4 kB / 0.7005 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009228/2.333, allocations: 163.8 kB / 0.7007 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.286e-05/2.333, allocations: 15.92 kB / 0.7007 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005638/2.333, allocations: 0.6274 MB / 0.7013 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/2.333, allocations: 32.31 kB / 0.7013 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/2.333, allocations: 8 kB / 0.7013 GB, free: 6.117 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 (pipePressureLoss.C2.b,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000139/2.333, allocations: 134.5 kB / 0.7015 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.809e-05/2.334, allocations: 27.78 kB / 0.7015 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007835/2.334, allocations: 0.5858 MB / 0.7021 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000371/2.335, allocations: 216.2 kB / 0.7023 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/2.335, allocations: 0 / 0.7023 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/2.335, allocations: 0 / 0.7023 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009957/2.336, allocations: 0.669 MB / 0.7029 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/2.336, allocations: 0 / 0.7029 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.111e-05/2.336, allocations: 28.92 kB / 0.703 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003794/2.336, allocations: 108.8 kB / 0.7031 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/2.336, allocations: 4 kB / 0.7031 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005309/2.337, allocations: 0.6633 MB / 0.7037 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/2.337, allocations: 0 / 0.7037 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/2.337, allocations: 333.2 kB / 0.704 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/2.337, allocations: 35.72 kB / 0.7041 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.685e-05/2.337, allocations: 25.19 kB / 0.7041 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/2.337, allocations: 4 kB / 0.7041 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.861e-05/2.337, allocations: 9.859 kB / 0.7041 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/2.337, allocations: 8 kB / 0.7041 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002594/2.338, allocations: 235.1 kB / 0.7043 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/2.338, allocations: 0 / 0.7043 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003229/2.341, allocations: 1.196 MB / 0.7055 GB, free: 1.684 MB / 0.5606 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006628/2.348, allocations: 2.512 MB / 0.708 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005318/2.348, allocations: 217.4 kB / 0.7082 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/2.348, allocations: 256 / 0.7082 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001925/2.348, allocations: 87.66 kB / 0.7083 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007596/2.349, allocations: 118.5 kB / 0.7084 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00483/2.354, allocations: 3.058 MB / 0.7114 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/2.354, allocations: 160.8 kB / 0.7115 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.791e-05/2.354, allocations: 23.7 kB / 0.7115 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/2.354, allocations: 87.41 kB / 0.7116 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of SimCode: time 5.71e-07/2.354, allocations: 0 / 0.7116 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09224/2.446, allocations: 48.16 MB / 0.7586 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/17.37, allocations: 5.938 kB / 0.7587 GB, free: 11.86 MB / 0.6231 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.556393397040665] Failed to read output from testmodel.py, exit status != 0: 17.9417517259717 17.9525553 15.807237087 Calling exit ...