Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestIdealCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7379/0.7379, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.389e-05/1.417e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1289, allocations: 31.98 MB / 236.8 MB, free: 5.41 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.Examples.SimpleExamples.TestIdealCheckValve): time 1.403/1.532, allocations: 298.3 MB / 0.5226 GB, free: 8.512 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4083/1.94, allocations: 186.6 MB / 0.7047 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008225/1.941, allocations: 14.31 kB / 0.7048 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005332/1.941, allocations: 217 kB / 0.705 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001098/1.943, allocations: 471.4 kB / 0.7054 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02111/1.964, allocations: 9.199 MB / 0.7144 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001952/1.966, allocations: 1.962 MB / 0.7163 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006277/1.966, allocations: 0.6765 MB / 0.717 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006422/1.967, allocations: 0.6566 MB / 0.7176 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005251/1.967, allocations: 0.6506 MB / 0.7183 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.714e-05/1.968, allocations: 56.19 kB / 0.7183 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02714/1.995, allocations: 20.2 MB / 0.738 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003313/1.995, allocations: 224.2 kB / 0.7382 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001125/1.996, allocations: 0.7677 MB / 0.739 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01948/2.016, allocations: 11.05 MB / 0.7498 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/2.016, allocations: 5.812 kB / 0.7498 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.352e-06/2.016, allocations: 2.906 kB / 0.7498 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.695e-05/2.016, allocations: 0 / 0.7498 GB, free: 14.05 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: 433 * Number of variables: 433 Notification: Performance of Generate backend data structure: time 0.006227/2.022, allocations: 2.726 MB / 0.7525 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/2.022, allocations: 8.625 kB / 0.7525 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/2.022, allocations: 181.2 kB / 0.7526 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007254/2.023, allocations: 0.6423 MB / 0.7533 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/2.023, allocations: 182.9 kB / 0.7534 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/2.023, allocations: 136.1 kB / 0.7536 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/2.025, allocations: 1.674 MB / 0.7552 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/2.025, allocations: 7.594 kB / 0.7552 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.918e-05/2.026, allocations: 55.41 kB / 0.7553 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.46e-05/2.026, allocations: 67.92 kB / 0.7553 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/2.027, allocations: 1.134 MB / 0.7564 GB, free: 10.88 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.05589/2.083, allocations: 34.65 MB / 0.7903 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/2.085, allocations: 1.186 MB / 0.7914 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009691/2.086, allocations: 0.6562 MB / 0.7921 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.301/2.387, allocations: 160.1 MB / 0.9484 GB, free: 13.18 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/2.389, allocations: 0.7613 MB / 0.9491 GB, free: 12.64 MB / 0.795 GB Notification: Performance of pre-optimization done (n=206): time 3.967e-06/2.389, allocations: 0 / 0.9491 GB, free: 12.64 MB / 0.795 GB Notification: Performance of matching and sorting (n=206): time 0.01936/2.408, allocations: 5.161 MB / 0.9542 GB, free: 7.785 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.569e-05/2.408, allocations: 222.2 kB / 0.9544 GB, free: 7.516 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009036/2.409, allocations: 0.7947 MB / 0.9551 GB, free: 6.695 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.134e-05/2.409, allocations: 45.7 kB / 0.9552 GB, free: 6.645 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003617/2.41, allocations: 0.5619 MB / 0.9557 GB, free: 6.078 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004234/2.41, allocations: 0.6498 MB / 0.9564 GB, free: 5.438 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/2.41, allocations: 173.8 kB / 0.9565 GB, free: 5.262 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 7.597e-05/2.41, allocations: 301.1 kB / 0.9568 GB, free: 4.965 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008212/2.411, allocations: 486.1 kB / 0.9573 GB, free: 4.492 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/2.412, allocations: 0.8873 MB / 0.9582 GB, free: 3.441 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004686/2.417, allocations: 2.124 MB / 0.9602 GB, free: 1.219 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/2.417, allocations: 4 kB / 0.9602 GB, free: 1.215 MB / 0.795 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.00325/2.42, allocations: 2.039 MB / 0.9622 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/2.42, allocations: 12.84 kB / 0.9622 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/2.42, allocations: 12 kB / 0.9622 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005025/2.425, allocations: 1.997 MB / 0.9642 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/2.426, allocations: 103.6 kB / 0.9643 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003112/2.429, allocations: 2.508 MB / 0.9667 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008721/2.43, allocations: 194 kB / 0.9669 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.381e-05/2.43, allocations: 59.98 kB / 0.967 GB, free: 10.32 MB / 0.8106 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: 51 * Number of states: 0 () * Number of discrete variables: 59 ($PRE.idealCheckValve2.touvert,$whenCondition7,$PRE.idealCheckValve2.tferme,$whenCondition6,$PRE.idealCheckValve1.touvert,$whenCondition5,$PRE.idealCheckValve1.tferme,$whenCondition4,$PRE.idealCheckValve3.touvert,$whenCondition3,$PRE.idealCheckValve3.tferme,$whenCondition2,$whenCondition1,idealCheckValve2.tferme,idealCheckValve2.touvert,idealCheckValve2.ouvert,$PRE.idealCheckValve2.ouvert,idealCheckValve1.tferme,idealCheckValve1.touvert,idealCheckValve1.ouvert,$PRE.idealCheckValve1.ouvert,$PRE.pulse.T0,idealCheckValve3.tferme,idealCheckValve3.touvert,idealCheckValve3.ouvert,$PRE.idealCheckValve3.ouvert,pulse.T0,perteDP3.C2.b,perteDP3.C1.a,perteDP2.C2.b,perteDP2.C1.a,idealCheckValve3.C1.a,idealCheckValve3.C2.b,puitsP1.C.a,sourceP1.C.b,perteDP1.C2.b,perteDP1.C1.a,perteDP.C2.b,perteDP.C1.a,volumeC.Ce3.a,volumeC.Cs.b,volumeC.Ce2.a,volumeC.Ce1.a,idealCheckValve2.C1.a,idealCheckValve2.C2.b,idealCheckValve1.C1.a,idealCheckValve1.C2.b,volumeD.Cs3.b,volumeD.Cs2.b,volumeD.Cs1.b,volumeD.Ce.a,staticCentrifugalPump2.C2.b,staticCentrifugalPump2.C1.a,staticCentrifugalPump1.C2.b,staticCentrifugalPump1.C1.a,puitsP.C.a,sourceP.C.b,volumeC.Ce1.b,volumeD.Cs3.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(14,34), (5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004964/2.43, allocations: 329.3 kB / 0.9673 GB, free: 10 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/2.43, allocations: 134.3 kB / 0.9674 GB, free: 9.871 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003928/2.434, allocations: 2.886 MB / 0.9702 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002884/2.437, allocations: 1.975 MB / 0.9722 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/2.437, allocations: 4 kB / 0.9722 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/2.437, allocations: 11.97 kB / 0.9722 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00619/2.443, allocations: 4.673 MB / 0.9768 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/2.443, allocations: 0 / 0.9768 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/2.444, allocations: 172.7 kB / 0.9769 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1588/2.603, allocations: 1.529 MB / 0.9784 GB, free: 458.6 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/2.603, allocations: 37.8 kB / 0.9784 GB, free: 458.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002437/2.605, allocations: 2.382 MB / 0.9808 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/2.605, allocations: 1.375 kB / 0.9808 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004148/2.61, allocations: 3.105 MB / 0.9838 GB, free: 457.2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/2.61, allocations: 387 kB / 0.9842 GB, free: 457.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/2.61, allocations: 35.06 kB / 0.9842 GB, free: 457.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006681/2.611, allocations: 74.94 kB / 0.9843 GB, free: 457.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/2.611, allocations: 108.7 kB / 0.9844 GB, free: 457.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.021e-05/2.611, allocations: 48.28 kB / 0.9844 GB, free: 457.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006317/2.612, allocations: 0.6215 MB / 0.985 GB, free: 457 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/2.612, allocations: 0 / 0.985 GB, free: 457 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003706/2.615, allocations: 1.835 MB / 0.9868 GB, free: 457 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volumeD.h,volumeC.h) * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,idealCheckValve3.ouvert,idealCheckValve3.touvert,idealCheckValve3.tferme,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,idealCheckValve1.ouvert,idealCheckValve1.touvert,idealCheckValve1.tferme,idealCheckValve2.ouvert,idealCheckValve2.touvert,idealCheckValve2.tferme) * Number of discrete states: 6 (idealCheckValve2.touvert,idealCheckValve2.tferme,idealCheckValve1.touvert,idealCheckValve1.tferme,idealCheckValve3.touvert,idealCheckValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(5,12), (12,31)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005097/2.621, allocations: 2.363 MB / 0.9891 GB, free: 456.8 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003143/2.624, allocations: 2.138 MB / 0.9912 GB, free: 456.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/2.624, allocations: 0.5938 kB / 0.9912 GB, free: 456.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001863/2.626, allocations: 1.041 MB / 0.9922 GB, free: 456.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/2.628, allocations: 0.573 MB / 0.9928 GB, free: 456.3 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003795/2.632, allocations: 3.918 MB / 0.9966 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005813/2.633, allocations: 1.349 MB / 0.9979 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005081/2.633, allocations: 151.1 kB / 0.9981 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/2.633, allocations: 87.28 kB / 0.9982 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of SimCode: time 4.51e-07/2.633, allocations: 0 / 0.9982 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of Templates: time 0.07084/2.704, allocations: 69.34 MB / 1.066 GB, free: 402 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve.pipe 2>&1) Environment - environmentSimulation: