Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions1.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.TestJunctions1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions1",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.7462/0.7462, allocations: 150.8 MB / 166.1 MB, free: 15.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.036e-05, allocations: 4 kB / 204.9 MB, free: 9.719 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 31.98 MB / 236.8 MB, free: 5.457 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.TestJunctions1): time 1.423/1.555, allocations: 299.7 MB / 0.524 GB, free: 8.086 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4172/1.972, allocations: 187.6 MB / 0.7072 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/1.973, allocations: 28 kB / 0.7072 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003524/1.974, allocations: 167.5 kB / 0.7074 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001261/1.975, allocations: 0.5503 MB / 0.7079 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02084/1.996, allocations: 9.408 MB / 0.7171 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002051/1.998, allocations: 2.212 MB / 0.7193 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008605/1.999, allocations: 1.091 MB / 0.7204 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005617/1.999, allocations: 0.7183 MB / 0.7211 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005932/2, allocations: 0.8597 MB / 0.7219 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001282/2, allocations: 97.31 kB / 0.722 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02587/2.026, allocations: 20.3 MB / 0.7418 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003729/2.026, allocations: 347.6 kB / 0.7421 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001035/2.027, allocations: 0.973 MB / 0.7431 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01827/2.046, allocations: 11.79 MB / 0.7546 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/2.046, allocations: 3.344 kB / 0.7546 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.633e-06/2.046, allocations: 0 / 0.7546 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.261e-05/2.046, allocations: 0 / 0.7546 GB, free: 13.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: 584 * Number of variables: 584 Notification: Performance of Generate backend data structure: time 0.005198/2.051, allocations: 2.924 MB / 0.7575 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/2.051, allocations: 8.719 kB / 0.7575 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002499/2.051, allocations: 313.6 kB / 0.7578 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/2.052, allocations: 251.2 kB / 0.758 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008939/2.052, allocations: 0.8599 MB / 0.7588 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.32e-05/2.053, allocations: 170.9 kB / 0.759 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/2.053, allocations: 223.2 kB / 0.7592 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/2.056, allocations: 2.295 MB / 0.7615 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.634e-05/2.056, allocations: 7.719 kB / 0.7615 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/2.056, allocations: 98.09 kB / 0.7616 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.217e-05/2.056, allocations: 61.17 kB / 0.7616 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/2.058, allocations: 1.556 MB / 0.7631 GB, free: 9.77 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.009376/2.067, allocations: 15.5 MB / 0.7783 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006561/2.068, allocations: 0.5163 MB / 0.7788 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003695/2.068, allocations: 296.2 kB / 0.7791 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8058/2.874, allocations: 391.2 MB / 1.161 GB, free: 280.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/2.874, allocations: 45.88 kB / 1.161 GB, free: 280.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 2.274e-06/2.874, allocations: 0 / 1.161 GB, free: 280.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.004339/2.879, allocations: 2.283 MB / 1.163 GB, free: 278.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.401e-05/2.879, allocations: 84.98 kB / 1.163 GB, free: 278.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/2.88, allocations: 1.026 MB / 1.164 GB, free: 278 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/2.88, allocations: 37.64 kB / 1.164 GB, free: 277.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/2.88, allocations: 0.9784 MB / 1.165 GB, free: 277.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.000124/2.88, allocations: 229.7 kB / 1.166 GB, free: 277 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/2.88, allocations: 156.3 kB / 1.166 GB, free: 276.9 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.732e-05/2.881, allocations: 409.6 kB / 1.166 GB, free: 276.5 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005531/2.881, allocations: 358.4 kB / 1.167 GB, free: 276.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007032/2.882, allocations: 0.9698 MB / 1.167 GB, free: 275.2 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/2.883, allocations: 1.383 MB / 1.169 GB, free: 273.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/2.883, allocations: 4 kB / 1.169 GB, free: 273.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003018/2.886, allocations: 1.837 MB / 1.171 GB, free: 272.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/2.886, allocations: 12 kB / 1.171 GB, free: 272.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/2.886, allocations: 20 kB / 1.171 GB, free: 272.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/2.888, allocations: 468.7 kB / 1.171 GB, free: 272 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/2.888, allocations: 242.9 kB / 1.171 GB, free: 271.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002972/2.891, allocations: 6.826 MB / 1.178 GB, free: 264.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/2.892, allocations: 237.2 kB / 1.178 GB, free: 264.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.631e-05/2.892, allocations: 77.98 kB / 1.178 GB, free: 264.6 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 46 (splitter3.Cs3.ftype,splitter3.Cs2.ftype,splitter3.Cs1.ftype,sourceP1.C.ftype,splitter3.fluids[1],singularPressureLoss3.fluid,sinkP2.fluid,sinkP3.fluid,singularPressureLoss4.fluid,singularPressureLoss5.fluid,sinkP4.fluid,singularPressureLoss6.fluid,sourceP1.fluid1,splitter3.fluid1,splitter2.Cs2.ftype,splitter2.Cs1.ftype,sourceP.C.ftype,splitter2.fluids[1],singularPressureLoss.fluid,sinkP.fluid,sinkP1.fluid,singularPressureLoss1.fluid,singularPressureLoss2.fluid,sourceP.fluid1,splitter2.fluid1,splitter3.Cs3.diff_on_2,splitter3.Cs3.diff_on_1,singularPressureLoss6.C2.diff_on_1,splitter3.Cs2.diff_on_2,splitter3.Cs2.diff_on_1,singularPressureLoss5.C2.diff_on_1,splitter3.Cs1.diff_on_2,splitter3.Cs1.diff_on_1,singularPressureLoss4.C2.diff_on_1,splitter3.Ce.diff_on_2,sourceP1.C.diff_on_2,singularPressureLoss3.C2.diff_on_1,splitter2.Cs2.diff_on_2,splitter2.Cs2.diff_on_1,singularPressureLoss2.C2.diff_on_1,splitter2.Cs1.diff_on_2,splitter2.Cs1.diff_on_1,singularPressureLoss1.C2.diff_on_1,splitter2.Ce.diff_on_2,sourceP.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 7 systems {(1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004797/2.893, allocations: 369.5 kB / 1.179 GB, free: 264.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/2.893, allocations: 118.6 kB / 1.179 GB, free: 264.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002174/2.895, allocations: 1.182 MB / 1.18 GB, free: 263.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/2.895, allocations: 10.08 kB / 1.18 GB, free: 263.3 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/2.895, allocations: 4 kB / 1.18 GB, free: 263.3 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/2.895, allocations: 7.984 kB / 1.18 GB, free: 263.3 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/2.909, allocations: 11.31 MB / 1.191 GB, free: 251 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/2.909, allocations: 4.062 kB / 1.191 GB, free: 251 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/2.909, allocations: 51.91 kB / 1.191 GB, free: 251 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/2.91, allocations: 402.1 kB / 1.191 GB, free: 250.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/2.91, allocations: 26.19 kB / 1.191 GB, free: 250.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/2.913, allocations: 6.724 MB / 1.198 GB, free: 243.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/2.913, allocations: 7.938 kB / 1.198 GB, free: 243.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/2.915, allocations: 1.184 MB / 1.199 GB, free: 242.1 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003171/2.915, allocations: 251.5 kB / 1.199 GB, free: 241.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/2.915, allocations: 16 kB / 1.199 GB, free: 241.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005165/2.916, allocations: 68.91 kB / 1.2 GB, free: 241.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.841e-05/2.916, allocations: 63.8 kB / 1.2 GB, free: 241.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.785e-05/2.916, allocations: 24 kB / 1.2 GB, free: 241.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006845/2.917, allocations: 0.6448 MB / 1.2 GB, free: 241 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/2.917, allocations: 0 / 1.2 GB, free: 241 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00365/2.92, allocations: 1.863 MB / 1.202 GB, free: 239.3 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (33): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 7 systems {(1,3), (1,3), (1,3), (1,3), (1,3), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006788/2.927, allocations: 3.731 MB / 1.206 GB, free: 235.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001683/2.929, allocations: 1.155 MB / 1.207 GB, free: 234.7 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/2.929, allocations: 5.125 kB / 1.207 GB, free: 234.7 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006944/2.929, allocations: 0.555 MB / 1.207 GB, free: 234.1 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/2.931, allocations: 302.5 kB / 1.208 GB, free: 233.8 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/2.944, allocations: 12.1 MB / 1.219 GB, free: 220.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/2.944, allocations: 1.247 MB / 1.221 GB, free: 219.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0006179/2.945, allocations: 209.6 kB / 1.221 GB, free: 219.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/2.945, allocations: 0.6477 MB / 1.222 GB, free: 218.7 MB / 0.8106 GB Notification: Performance of SimCode: time 6.01e-07/2.945, allocations: 4 kB / 1.222 GB, free: 218.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.743/8.688, allocations: 70.14 MB / 1.29 GB, free: 149.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/8.688, allocations: 294.1 kB / 1.29 GB, free: 149.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.398/14.09, allocations: 0 / 1.29 GB, free: 149.3 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions1.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions1.pipe 2>&1)