Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8939/0.8939, allocations: 150.8 MB / 166.1 MB, free: 15.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.743e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1833, allocations: 31.97 MB / 236.8 MB, free: 5.516 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.TestIdealCheckValve): time 1.72/1.904, allocations: 300.1 MB / 0.5243 GB, free: 6.949 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5477/2.451, allocations: 196 MB / 0.7157 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001606/2.453, allocations: 36.69 kB / 0.7157 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005131/2.454, allocations: 189.3 kB / 0.7159 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002049/2.456, allocations: 0.6526 MB / 0.7165 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03512/2.491, allocations: 11.51 MB / 0.7278 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003812/2.495, allocations: 2.875 MB / 0.7306 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/2.496, allocations: 1.258 MB / 0.7318 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001287/2.498, allocations: 0.95 MB / 0.7327 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/2.499, allocations: 1.094 MB / 0.7338 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002195/2.499, allocations: 121.9 kB / 0.7339 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04131/2.54, allocations: 22.85 MB / 0.7562 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0008352/2.541, allocations: 457.2 kB / 0.7567 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001885/2.543, allocations: 1.2 MB / 0.7578 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03531/2.578, allocations: 13.76 MB / 0.7713 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/2.578, allocations: 0.9375 kB / 0.7713 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.387e-06/2.578, allocations: 0 / 0.7713 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.623e-05/2.578, allocations: 0 / 0.7713 GB, free: 10.03 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: 650 * Number of variables: 650 Notification: Performance of Generate backend data structure: time 0.0104/2.589, allocations: 3.729 MB / 0.7749 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/2.589, allocations: 8.625 kB / 0.7749 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006827/2.59, allocations: 305.5 kB / 0.7752 GB, free: 7.504 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001605/2.591, allocations: 1.054 MB / 0.7762 GB, free: 6.906 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/2.591, allocations: 281.5 kB / 0.7765 GB, free: 6.797 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004072/2.592, allocations: 260.7 kB / 0.7768 GB, free: 6.785 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004425/2.596, allocations: 2.671 MB / 0.7794 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.452e-05/2.596, allocations: 9.812 kB / 0.7794 GB, free: 5.164 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/2.597, allocations: 109.1 kB / 0.7795 GB, free: 5.137 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-05/2.597, allocations: 64 kB / 0.7795 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003623/2.6, allocations: 2.141 MB / 0.7816 GB, free: 3.668 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.0278/2.628, allocations: 23.39 MB / 0.8045 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/2.631, allocations: 1.506 MB / 0.8059 GB, free: 8.887 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/2.632, allocations: 0.5492 MB / 0.8065 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9694/3.601, allocations: 295.2 MB / 1.095 GB, free: 120.7 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/3.603, allocations: 0.6687 MB / 1.095 GB, free: 120.2 MB / 0.795 GB Notification: Performance of pre-optimization done (n=123): time 5.199e-06/3.603, allocations: 4 kB / 1.095 GB, free: 120.2 MB / 0.795 GB Notification: Performance of matching and sorting (n=123): time 0.01906/3.622, allocations: 4.505 MB / 1.1 GB, free: 116.2 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.524e-05/3.622, allocations: 249.1 kB / 1.1 GB, free: 115.9 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/3.624, allocations: 1.362 MB / 1.101 GB, free: 115 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001288/3.624, allocations: 52.77 kB / 1.101 GB, free: 114.9 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007234/3.625, allocations: 1.113 MB / 1.103 GB, free: 114.1 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003752/3.625, allocations: 423.7 kB / 1.103 GB, free: 113.8 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002612/3.626, allocations: 212.8 kB / 1.103 GB, free: 113.7 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 3.951e-05/3.626, allocations: 301.1 kB / 1.103 GB, free: 113.4 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009889/3.627, allocations: 496.4 kB / 1.104 GB, free: 113 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/3.628, allocations: 1.321 MB / 1.105 GB, free: 111.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006376/3.634, allocations: 2.694 MB / 1.108 GB, free: 109.1 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.43e-05/3.634, allocations: 8 kB / 1.108 GB, free: 109.1 MB / 0.795 GB Notification: Performance of matching and sorting (n=268) (initialization): time 0.005712/3.64, allocations: 2.569 MB / 1.11 GB, free: 107.3 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/3.64, allocations: 17.88 kB / 1.11 GB, free: 107.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.354e-05/3.64, allocations: 31.98 kB / 1.11 GB, free: 107.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005015/3.645, allocations: 1.152 MB / 1.111 GB, free: 106.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/3.646, allocations: 320.1 kB / 1.112 GB, free: 105.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/3.649, allocations: 1.979 MB / 1.114 GB, free: 104.2 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/3.65, allocations: 260.4 kB / 1.114 GB, free: 104 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/3.651, allocations: 111.2 kB / 1.114 GB, free: 103.9 MB / 0.795 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 126 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.idealCheckValve3.touvert,$whenCondition7,$PRE.idealCheckValve3.tferme,$whenCondition6,$whenCondition5,$PRE.idealCheckValve1.touvert,$whenCondition4,$PRE.idealCheckValve1.tferme,$whenCondition3,$PRE.idealCheckValve2.touvert,$whenCondition2,$PRE.idealCheckValve2.tferme,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,perteDP2.fluid,perteDP3.fluid,idealCheckValve3.tferme,idealCheckValve3.touvert,idealCheckValve3.ouvert,$PRE.idealCheckValve3.ouvert,pulse.T0,volumeC.Cs.ftype,sourceP.C.ftype,volumeC.Ce1.ftype,volumeD.Cs2.ftype,volumeD.Cs1.ftype,volumeC.fluids[1],volumeD.Cs3.ftype,volumeD.fluids[1],puitsP.fluid,staticCentrifugalPump1.fluid,staticCentrifugalPump2.fluid,perteDP.fluid,perteDP1.fluid,idealCheckValve2.tferme,idealCheckValve2.touvert,idealCheckValve2.ouvert,$PRE.idealCheckValve2.ouvert,idealCheckValve1.tferme,idealCheckValve1.touvert,idealCheckValve1.ouvert,$PRE.idealCheckValve1.ouvert,volumeC.fluid1,volumeD.fluid1,sourceP.fluid1,sourceP1.fluid1,volumeC.Cs.diff_on_1,volumeD.Ce.diff_on_2,volumeC.Ce3.diff_on_2,staticCentrifugalPump2.C2.diff_on_2,volumeD.Cs2.diff_on_2,volumeC.Ce2.diff_on_2,staticCentrifugalPump1.C2.diff_on_2,volumeD.Cs1.diff_on_2,volumeC.Ce1.diff_on_2,volumeC.Ce1.diff_on_1,volumeD.Cs2.diff_on_1,staticCentrifugalPump2.C2.diff_on_1,idealCheckValve2.C2.diff_on_1,volumeD.Cs1.diff_on_1,staticCentrifugalPump1.C2.diff_on_1,idealCheckValve1.C2.diff_on_1,volumeD.Cs3.diff_on_1,volumeD.Cs3.diff_on_2,perteDP2.C1.diff_on_2,perteDP3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,10), (10,36)} Notification: Performance of prepare postOptimizeDAE: time 0.001021/3.652, allocations: 474 kB / 1.115 GB, free: 103.6 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/3.652, allocations: 173.8 kB / 1.115 GB, free: 103.5 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00598/3.658, allocations: 2.093 MB / 1.117 GB, free: 101.9 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/3.658, allocations: 12 kB / 1.117 GB, free: 101.8 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/3.658, allocations: 7.984 kB / 1.117 GB, free: 101.8 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/3.658, allocations: 7.984 kB / 1.117 GB, free: 101.8 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006267/3.664, allocations: 3.52 MB / 1.12 GB, free: 99.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/3.664, allocations: 0 / 1.12 GB, free: 99.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000471/3.665, allocations: 119 kB / 1.12 GB, free: 98.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003869/3.669, allocations: 0.9016 MB / 1.121 GB, free: 98.17 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/3.669, allocations: 43.41 kB / 1.121 GB, free: 98.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/3.671, allocations: 1.843 MB / 1.123 GB, free: 96.55 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/3.671, allocations: 6.188 kB / 1.123 GB, free: 96.54 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004886/3.676, allocations: 2.287 MB / 1.125 GB, free: 94.84 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007415/3.676, allocations: 380.4 kB / 1.126 GB, free: 94.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003317/3.677, allocations: 30.33 kB / 1.126 GB, free: 94.49 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000805/3.678, allocations: 54.25 kB / 1.126 GB, free: 94.46 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/3.678, allocations: 91.2 kB / 1.126 GB, free: 94.38 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/3.678, allocations: 43.36 kB / 1.126 GB, free: 94.34 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001151/3.679, allocations: 0.847 MB / 1.127 GB, free: 93.71 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.91e-07/3.679, allocations: 3.375 kB / 1.127 GB, free: 93.71 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.006346/3.685, allocations: 2.306 MB / 1.129 GB, free: 91.78 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (volumeD.h,volumeC.h) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCheckValve1.ouvert,idealCheckValve1.touvert,idealCheckValve1.tferme,idealCheckValve2.ouvert,idealCheckValve2.touvert,idealCheckValve2.tferme,$whenCondition7,$whenCondition6,$whenCondition5,pulse.T0,idealCheckValve3.ouvert,idealCheckValve3.touvert,idealCheckValve3.tferme) * Number of discrete states: 6 (idealCheckValve3.touvert,idealCheckValve3.tferme,idealCheckValve1.touvert,idealCheckValve1.tferme,idealCheckValve2.touvert,idealCheckValve2.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(8,33), (3,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009608/3.695, allocations: 2.938 MB / 1.132 GB, free: 89.46 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003292/3.698, allocations: 1.457 MB / 1.133 GB, free: 88.42 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/3.698, allocations: 4.062 kB / 1.133 GB, free: 88.42 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001319/3.7, allocations: 0.6309 MB / 1.134 GB, free: 87.97 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/3.702, allocations: 321.1 kB / 1.134 GB, free: 87.75 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006029/3.708, allocations: 4.314 MB / 1.138 GB, free: 83.62 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009448/3.709, allocations: 1.424 MB / 1.14 GB, free: 82.17 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001054/3.71, allocations: 269.1 kB / 1.14 GB, free: 81.9 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002573/3.71, allocations: 111 kB / 1.14 GB, free: 81.79 MB / 0.795 GB Notification: Performance of SimCode: time 8.92e-07/3.71, allocations: 3.938 kB / 1.14 GB, free: 81.79 MB / 0.795 GB Notification: Performance of Templates: time 0.07969/3.79, allocations: 68.09 MB / 1.207 GB, free: 14.04 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe 2>&1) Environment - environmentSimulation: