Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9467/0.9467, allocations: 150.8 MB / 166.1 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002222/0.0002223, allocations: 19.97 kB / 204.2 MB, free: 9.953 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2551, allocations: 31.34 MB / 235.6 MB, free: 5.438 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend): time 2.1/2.356, allocations: 293.8 MB / 0.517 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2664/2.622, allocations: 188.5 MB / 0.7011 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008141/2.623, allocations: 7.938 kB / 0.7011 GB, free: 0.5352 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:57:3-58:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:59:3-60:67:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005853/2.623, allocations: 191.5 kB / 0.7013 GB, free: 356 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.5385/3.162, allocations: 251.7 kB / 0.7015 GB, free: 2.273 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.04595/3.208, allocations: 10.85 MB / 0.7121 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009851/3.209, allocations: 0.5396 MB / 0.7126 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003601/3.209, allocations: 272 kB / 0.7129 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003631/3.21, allocations: 258.2 kB / 0.7131 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003593/3.21, allocations: 359.3 kB / 0.7135 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.094e-05/3.21, allocations: 40 kB / 0.7135 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04661/3.257, allocations: 21 MB / 0.734 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004352/3.257, allocations: 209.2 kB / 0.7342 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005283/3.258, allocations: 319.9 kB / 0.7345 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0366/3.294, allocations: 10.94 MB / 0.7452 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/3.294, allocations: 2.078 kB / 0.7452 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.034e-06/3.294, allocations: 0 / 0.7452 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.173e-05/3.294, allocations: 0.8125 kB / 0.7452 GB, free: 15.44 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.008216/3.303, allocations: 2.23 MB / 0.7474 GB, free: 14 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/3.303, allocations: 10.84 kB / 0.7474 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.605e-05/3.303, allocations: 78.25 kB / 0.7475 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/3.303, allocations: 80.47 kB / 0.7475 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000666/3.304, allocations: 0.5465 MB / 0.7481 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/3.304, allocations: 31.66 kB / 0.7481 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.902e-05/3.304, allocations: 37.69 kB / 0.7481 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007192/3.304, allocations: 490 kB / 0.7486 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/3.304, allocations: 5 kB / 0.7486 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/3.305, allocations: 18.25 kB / 0.7486 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/3.305, allocations: 10.19 kB / 0.7486 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006085/3.305, allocations: 414.1 kB / 0.749 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009635/3.315, allocations: 6.712 MB / 0.7556 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000549/3.315, allocations: 115.4 kB / 0.7557 GB, free: 8.012 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.76e-05/3.315, allocations: 46.81 kB / 0.7558 GB, free: 8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2928/3.608, allocations: 154.7 MB / 0.9068 GB, free: 3.871 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/3.608, allocations: 33.59 kB / 0.9069 GB, free: 3.832 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 1.774e-06/3.608, allocations: 0 / 0.9069 GB, free: 3.832 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.00225/3.611, allocations: 467.8 kB / 0.9073 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/3.611, allocations: 109.7 kB / 0.9074 GB, free: 3.266 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/3.612, allocations: 1.072 MB / 0.9085 GB, free: 2.453 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/3.612, allocations: 29.14 kB / 0.9085 GB, free: 2.422 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002739/3.612, allocations: 380.3 kB / 0.9089 GB, free: 2.18 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/3.612, allocations: 44.52 kB / 0.9089 GB, free: 2.145 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/3.612, allocations: 81.09 kB / 0.909 GB, free: 2.082 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001718/3.613, allocations: 381.8 kB / 0.9094 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/3.613, allocations: 130.9 kB / 0.9095 GB, free: 1.633 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/3.613, allocations: 261.5 kB / 0.9097 GB, free: 1.363 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/3.613, allocations: 311.4 kB / 0.91 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/3.614, allocations: 5.203 kB / 0.91 GB, free: 1.086 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001385/3.615, allocations: 0.562 MB / 0.9106 GB, free: 0.6445 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/3.615, allocations: 8.094 kB / 0.9106 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/3.615, allocations: 4 kB / 0.9106 GB, free: 0.6328 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/3.617, allocations: 206 kB / 0.9108 GB, free: 460 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/3.617, allocations: 46.88 kB / 0.9108 GB, free: 416 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005568/3.617, allocations: 0.6232 MB / 0.9114 GB, free: 15.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/3.618, allocations: 47.64 kB / 0.9115 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/3.618, allocations: 15.88 kB / 0.9115 GB, free: 15.75 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002806/3.618, allocations: 265.8 kB / 0.9118 GB, free: 15.54 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.8e-05/3.618, allocations: 71.14 kB / 0.9118 GB, free: 15.46 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006774/3.619, allocations: 254.9 kB / 0.9121 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/3.619, allocations: 4 kB / 0.9121 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/3.619, allocations: 3.938 kB / 0.9121 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/3.619, allocations: 1.094 kB / 0.9121 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/3.62, allocations: 0.8382 MB / 0.9129 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/3.62, allocations: 4 kB / 0.9129 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.085e-05/3.62, allocations: 10.94 kB / 0.9129 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/3.622, allocations: 156.4 kB / 0.9131 GB, free: 14.36 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.019e-05/3.622, allocations: 10.94 kB / 0.9131 GB, free: 14.36 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000505/3.622, allocations: 0.6341 MB / 0.9137 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/3.622, allocations: 0 / 0.9137 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/3.623, allocations: 417.8 kB / 0.9141 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/3.624, allocations: 162.1 kB / 0.9142 GB, free: 13.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.042e-05/3.624, allocations: 0 / 0.9142 GB, free: 13.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/3.624, allocations: 19.67 kB / 0.9143 GB, free: 13.18 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/3.624, allocations: 9.188 kB / 0.9143 GB, free: 13.17 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/3.624, allocations: 4 kB / 0.9143 GB, free: 13.17 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008022/3.625, allocations: 0.7805 MB / 0.915 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/3.625, allocations: 0 / 0.915 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005271/3.63, allocations: 1.642 MB / 0.9166 GB, free: 11.07 MB / 0.7637 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 (3): * Single equations (assignments): 2 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009294/3.639, allocations: 3.348 MB / 0.9199 GB, free: 8.105 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006159/3.64, allocations: 245.2 kB / 0.9201 GB, free: 7.934 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/3.64, allocations: 0 / 0.9201 GB, free: 7.934 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001722/3.64, allocations: 59.34 kB / 0.9202 GB, free: 7.887 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006421/3.641, allocations: 105.9 kB / 0.9203 GB, free: 7.824 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/3.651, allocations: 6.612 MB / 0.9268 GB, free: 1.996 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/3.652, allocations: 0.9286 MB / 0.9277 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002228/3.652, allocations: 84.17 kB / 0.9277 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002518/3.652, allocations: 216.7 kB / 0.9279 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of SimCode: time 1.793e-06/3.652, allocations: 0 / 0.9279 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.424/4.076, allocations: 60.91 MB / 0.9874 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002646/4.077, allocations: 273.6 kB / 0.9877 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.652/8.728, allocations: 4.078 kB / 0.9877 GB, free: 450.2 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)