Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3.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.TestJunctions3,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions3",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.7478/0.7478, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.123e-05/2.124e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1358, allocations: 31.99 MB / 236.8 MB, free: 5.422 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3): time 1.481/1.617, allocations: 301.6 MB / 0.5258 GB, free: 6.156 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4757/2.092, allocations: 195 MB / 0.7163 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/2.094, allocations: 25.56 kB / 0.7163 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004906/2.094, allocations: 240.7 kB / 0.7165 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001401/2.095, allocations: 0.7177 MB / 0.7172 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02888/2.124, allocations: 11.4 MB / 0.7284 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002997/2.127, allocations: 3.217 MB / 0.7315 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/2.128, allocations: 1.286 MB / 0.7327 GB, free: 3 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/2.129, allocations: 1.069 MB / 0.7338 GB, free: 3 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001024/2.131, allocations: 1.234 MB / 0.735 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001932/2.131, allocations: 153.6 kB / 0.7351 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03402/2.165, allocations: 22.89 MB / 0.7575 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006353/2.165, allocations: 0.5275 MB / 0.758 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001504/2.167, allocations: 1.352 MB / 0.7593 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02663/2.194, allocations: 14.07 MB / 0.7731 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/2.194, allocations: 3.844 kB / 0.7731 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.054e-06/2.194, allocations: 0 / 0.7731 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.427e-05/2.194, allocations: 0 / 0.7731 GB, free: 9.715 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: 792 * Number of variables: 792 Notification: Performance of Generate backend data structure: time 0.008351/2.202, allocations: 3.888 MB / 0.7769 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/2.202, allocations: 8.469 kB / 0.7769 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003615/2.202, allocations: 422.9 kB / 0.7773 GB, free: 7.16 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003983/2.203, allocations: 335.4 kB / 0.7776 GB, free: 7.004 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/2.204, allocations: 1.024 MB / 0.7786 GB, free: 6.383 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/2.204, allocations: 243.3 kB / 0.7788 GB, free: 6.242 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/2.205, allocations: 294.2 kB / 0.7791 GB, free: 6.051 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004892/2.209, allocations: 3.839 MB / 0.7829 GB, free: 2.695 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.008e-05/2.21, allocations: 29.44 kB / 0.7829 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001958/2.21, allocations: 141.7 kB / 0.783 GB, free: 2.641 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.443e-05/2.21, allocations: 88 kB / 0.7831 GB, free: 2.555 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00349/2.213, allocations: 2.23 MB / 0.7853 GB, free: 1.141 MB / 0.5919 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.03073/2.244, allocations: 34.22 MB / 0.8187 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/2.245, allocations: 0.8219 MB / 0.8195 GB, free: 11.51 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/2.246, allocations: 383.7 kB / 0.8199 GB, free: 11.13 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8866/3.133, allocations: 390.1 MB / 1.201 GB, free: 210.1 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/3.133, allocations: 46.92 kB / 1.201 GB, free: 210 MB / 0.795 GB Notification: Performance of pre-optimization done (n=72): time 3.316e-06/3.133, allocations: 0.7031 kB / 1.201 GB, free: 210 MB / 0.795 GB Notification: Performance of matching and sorting (n=72): time 0.006822/3.14, allocations: 2.26 MB / 1.203 GB, free: 208.3 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/3.14, allocations: 64 kB / 1.203 GB, free: 208.2 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002256/3.142, allocations: 1.944 MB / 1.205 GB, free: 206.8 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.164e-05/3.142, allocations: 41.14 kB / 1.205 GB, free: 206.8 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007725/3.143, allocations: 1.675 MB / 1.207 GB, free: 205.4 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/3.143, allocations: 306.5 kB / 1.207 GB, free: 205.1 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002846/3.143, allocations: 324.5 kB / 1.207 GB, free: 204.9 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 3.915e-05/3.143, allocations: 305.7 kB / 1.208 GB, free: 204.6 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/3.144, allocations: 0.6148 MB / 1.208 GB, free: 204.2 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/3.146, allocations: 2.77 MB / 1.211 GB, free: 200.7 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00335/3.15, allocations: 3.739 MB / 1.215 GB, free: 196.4 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-05/3.15, allocations: 24 kB / 1.215 GB, free: 196.4 MB / 0.795 GB Notification: Performance of matching and sorting (n=434) (initialization): time 0.005518/3.155, allocations: 3.532 MB / 1.218 GB, free: 193.6 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/3.155, allocations: 36.84 kB / 1.218 GB, free: 193.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.044e-05/3.155, allocations: 77.12 kB / 1.218 GB, free: 193.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005502/3.161, allocations: 1.304 MB / 1.219 GB, free: 192.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/3.162, allocations: 0.6336 MB / 1.22 GB, free: 191.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/3.164, allocations: 1.357 MB / 1.221 GB, free: 190.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002613/3.167, allocations: 0.499 MB / 1.222 GB, free: 190 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/3.167, allocations: 216 kB / 1.222 GB, free: 189.8 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * Number of states: 0 () * Number of discrete variables: 92 (staticVolume2.fluid1,staticVolume1.fluid1,staticVolume.fluid1,staticVolume2.Cs.ftype,staticVolume2.Ce8.ftype,staticVolume2.Ce7.ftype,staticVolume2.Ce6.ftype,staticVolume2.Ce5.ftype,staticVolume2.Ce3.ftype,staticVolume2.Ce2.ftype,staticVolume2.Ce1.ftype,sourceP1.C.ftype,staticVolume2.fluids[1],staticVolume1.Cs.ftype,staticVolume1.Ce7.ftype,staticVolume1.Ce6.ftype,staticVolume1.Ce5.ftype,staticVolume1.Ce4.ftype,staticVolume1.Ce3.ftype,staticVolume1.Ce2.ftype,staticVolume.Cs.ftype,staticVolume1.fluids[1],staticVolume.Ce8.ftype,staticVolume.Ce7.ftype,staticVolume.Ce6.ftype,staticVolume.Ce5.ftype,staticVolume.Ce3.ftype,staticVolume.Ce2.ftype,staticVolume.Ce1.ftype,sourceP.C.ftype,staticVolume.fluids[1],valve1.fluid,valve2.fluid,valve3.fluid,puitsP2.fluid,pipe1.fluid,pipe2.fluid,sourceP1.fluid1,sourceP.fluid1,staticVolume2.Cs.diff_on_1,valve2.C2.diff_on_1,staticVolume2.Ce8.diff_on_2,staticVolume2.Ce7.diff_on_2,staticVolume2.Ce6.diff_on_2,staticVolume2.Ce5.diff_on_2,staticVolume2.Ce4.diff_on_2,staticVolume2.Ce3.diff_on_2,staticVolume2.Ce2.diff_on_2,staticVolume2.Ce1.diff_on_2,staticVolume2.Ce8.diff_on_1,staticVolume2.Ce7.diff_on_1,staticVolume2.Ce6.diff_on_1,staticVolume2.Ce5.diff_on_1,staticVolume2.Ce3.diff_on_1,staticVolume2.Ce2.diff_on_1,staticVolume2.Ce1.diff_on_1,staticVolume1.Cs.diff_on_1,valve3.C2.diff_on_1,staticVolume1.Ce8.diff_on_2,staticVolume2.Cs.diff_on_2,staticVolume1.Ce7.diff_on_2,staticVolume1.Ce6.diff_on_2,staticVolume1.Ce5.diff_on_2,staticVolume1.Ce4.diff_on_2,staticVolume1.Ce3.diff_on_2,staticVolume1.Ce2.diff_on_2,staticVolume1.Ce1.diff_on_2,staticVolume.Cs.diff_on_2,staticVolume1.Ce7.diff_on_1,staticVolume1.Ce6.diff_on_1,staticVolume1.Ce5.diff_on_1,staticVolume1.Ce4.diff_on_1,staticVolume1.Ce3.diff_on_1,staticVolume1.Ce2.diff_on_1,staticVolume.Cs.diff_on_1,valve1.C2.diff_on_1,staticVolume.Ce8.diff_on_2,staticVolume.Ce7.diff_on_2,staticVolume.Ce6.diff_on_2,staticVolume.Ce5.diff_on_2,staticVolume.Ce4.diff_on_2,staticVolume.Ce3.diff_on_2,staticVolume.Ce2.diff_on_2,staticVolume.Ce1.diff_on_2,staticVolume.Ce8.diff_on_1,staticVolume.Ce7.diff_on_1,staticVolume.Ce6.diff_on_1,staticVolume.Ce5.diff_on_1,staticVolume.Ce3.diff_on_1,staticVolume.Ce2.diff_on_1,staticVolume.Ce1.diff_on_1,staticVolume1.Cs.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (391): * Single equations (assignments): 390 * 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 {(20,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0009049/3.168, allocations: 0.6353 MB / 1.223 GB, free: 189.1 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/3.168, allocations: 217.3 kB / 1.223 GB, free: 188.9 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/3.171, allocations: 1.545 MB / 1.224 GB, free: 187.4 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/3.171, allocations: 11.98 kB / 1.224 GB, free: 187.4 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/3.171, allocations: 0 / 1.224 GB, free: 187.4 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/3.171, allocations: 7.984 kB / 1.224 GB, free: 187.4 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005696/3.177, allocations: 3.218 MB / 1.228 GB, free: 184.1 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/3.177, allocations: 7.984 kB / 1.228 GB, free: 184.1 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/3.177, allocations: 71.89 kB / 1.228 GB, free: 184 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004228/3.182, allocations: 1.003 MB / 1.229 GB, free: 183 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.753e-05/3.182, allocations: 23.98 kB / 1.229 GB, free: 183 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00148/3.183, allocations: 1.24 MB / 1.23 GB, free: 181.8 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/3.183, allocations: 1.828 kB / 1.23 GB, free: 181.8 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003813/3.187, allocations: 1.758 MB / 1.232 GB, free: 180 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006794/3.188, allocations: 354.3 kB / 1.232 GB, free: 179.6 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003287/3.188, allocations: 12 kB / 1.232 GB, free: 179.6 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007869/3.189, allocations: 75.78 kB / 1.232 GB, free: 179.5 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/3.189, allocations: 56.52 kB / 1.232 GB, free: 179.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.564e-05/3.189, allocations: 35.98 kB / 1.232 GB, free: 179.5 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001298/3.19, allocations: 1.086 MB / 1.233 GB, free: 178.4 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/3.19, allocations: 0 / 1.233 GB, free: 178.4 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.006857/3.197, allocations: 2.398 MB / 1.235 GB, free: 176.2 MB / 0.795 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 (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 {(20,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01114/3.208, allocations: 4.622 MB / 1.24 GB, free: 171.9 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003854/3.212, allocations: 1.926 MB / 1.242 GB, free: 170 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/3.212, allocations: 1.875 kB / 1.242 GB, free: 170 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/3.213, allocations: 0.5324 MB / 1.242 GB, free: 169.5 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00193/3.215, allocations: 328.1 kB / 1.243 GB, free: 169.2 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02466/3.24, allocations: 21.61 MB / 1.264 GB, free: 144.2 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007987/3.241, allocations: 1.466 MB / 1.265 GB, free: 142.7 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001156/3.242, allocations: 329.1 kB / 1.266 GB, free: 142.4 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007205/3.243, allocations: 0.8664 MB / 1.266 GB, free: 141.5 MB / 0.795 GB Notification: Performance of SimCode: time 6.02e-07/3.243, allocations: 4.75 kB / 1.266 GB, free: 141.5 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.867/7.11, allocations: 86.85 MB / 1.351 GB, free: 55.72 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/7.111, allocations: 279.6 kB / 1.351 GB, free: 55.35 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.31/12.42, allocations: 6.812 kB / 1.351 GB, free: 55.34 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions3.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions3.pipe 2>&1)