Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8516/0.8516, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.573e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1692, allocations: 31.97 MB / 236.8 MB, free: 5.219 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.TestCheckValve): time 1.653/1.822, allocations: 298 MB / 0.5222 GB, free: 9.016 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5362/2.358, allocations: 186.4 MB / 0.7043 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007238/2.359, allocations: 9 kB / 0.7043 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006136/2.359, allocations: 212.2 kB / 0.7045 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001161/2.361, allocations: 452.7 kB / 0.705 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02763/2.388, allocations: 9.15 MB / 0.7139 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003003/2.391, allocations: 1.846 MB / 0.7157 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000825/2.392, allocations: 0.6134 MB / 0.7163 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/2.393, allocations: 0.6094 MB / 0.7169 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006302/2.394, allocations: 0.5994 MB / 0.7175 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.191e-05/2.394, allocations: 47.56 kB / 0.7175 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03677/2.431, allocations: 20.2 MB / 0.7373 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005446/2.431, allocations: 204.8 kB / 0.7374 GB, free: 2.848 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001286/2.433, allocations: 0.713 MB / 0.7381 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02744/2.46, allocations: 10.93 MB / 0.7488 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/2.46, allocations: 2.125 kB / 0.7488 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.535e-06/2.46, allocations: 0 / 0.7488 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.272e-05/2.46, allocations: 4 kB / 0.7488 GB, free: 14.47 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: 407 * Number of variables: 407 Notification: Performance of Generate backend data structure: time 0.007862/2.468, allocations: 2.635 MB / 0.7514 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/2.468, allocations: 11.94 kB / 0.7514 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003024/2.468, allocations: 170.5 kB / 0.7516 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007728/2.469, allocations: 0.5911 MB / 0.7522 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/2.469, allocations: 165.4 kB / 0.7523 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/2.469, allocations: 117.2 kB / 0.7524 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/2.472, allocations: 1.548 MB / 0.7539 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/2.472, allocations: 7.766 kB / 0.7539 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.568e-05/2.472, allocations: 51.28 kB / 0.754 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-05/2.472, allocations: 61.36 kB / 0.754 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001661/2.473, allocations: 1.061 MB / 0.7551 GB, free: 11.45 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.06184/2.535, allocations: 33.89 MB / 0.7882 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/2.537, allocations: 0.9765 MB / 0.7891 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000967/2.538, allocations: 0.6264 MB / 0.7897 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3296/2.868, allocations: 160 MB / 0.946 GB, free: 15.12 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/2.869, allocations: 0.7353 MB / 0.9467 GB, free: 14.59 MB / 0.795 GB Notification: Performance of pre-optimization done (n=205): time 6.432e-06/2.87, allocations: 3.938 kB / 0.9467 GB, free: 14.59 MB / 0.795 GB Notification: Performance of matching and sorting (n=205): time 0.03177/2.901, allocations: 6.752 MB / 0.9533 GB, free: 8.52 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/2.901, allocations: 227.5 kB / 0.9536 GB, free: 8.254 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/2.903, allocations: 0.7093 MB / 0.9543 GB, free: 7.699 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001164/2.903, allocations: 42.27 kB / 0.9543 GB, free: 7.664 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005248/2.903, allocations: 0.4976 MB / 0.9548 GB, free: 7.309 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005965/2.904, allocations: 0.6473 MB / 0.9554 GB, free: 6.691 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/2.904, allocations: 161.6 kB / 0.9556 GB, free: 6.527 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001331/2.904, allocations: 353.9 kB / 0.9559 GB, free: 6.176 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008869/2.905, allocations: 463.2 kB / 0.9563 GB, free: 5.723 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/2.906, allocations: 0.8274 MB / 0.9572 GB, free: 4.75 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00323/2.909, allocations: 1.672 MB / 0.9588 GB, free: 2.988 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/2.91, allocations: 8 kB / 0.9588 GB, free: 2.98 MB / 0.795 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003822/2.913, allocations: 1.974 MB / 0.9607 GB, free: 1.059 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/2.913, allocations: 11.84 kB / 0.9607 GB, free: 1.051 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/2.913, allocations: 12 kB / 0.9607 GB, free: 1.039 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005847/2.919, allocations: 2.022 MB / 0.9627 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/2.92, allocations: 91.52 kB / 0.9628 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/2.923, allocations: 2.419 MB / 0.9652 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/2.924, allocations: 186.1 kB / 0.9653 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/2.924, allocations: 63.92 kB / 0.9654 GB, free: 12.23 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: 45 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.checkValve2.touvert,$whenCondition7,$PRE.checkValve2.tferme,$whenCondition6,$PRE.checkValve1.touvert,$whenCondition5,$PRE.checkValve1.tferme,$whenCondition4,$PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,checkValve2.tferme,checkValve2.touvert,checkValve2.ouvert,$PRE.checkValve2.ouvert,checkValve1.tferme,checkValve1.touvert,checkValve1.ouvert,$PRE.checkValve1.ouvert,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,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,checkValve2.C2.b,checkValve2.C1.a,checkValve1.C2.b,checkValve1.C1.a,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 (90): * Single equations (assignments): 84 * 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,38), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006151/2.925, allocations: 297.4 kB / 0.9657 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/2.925, allocations: 126.4 kB / 0.9658 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/2.929, allocations: 2.875 MB / 0.9686 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002901/2.932, allocations: 1.961 MB / 0.9705 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/2.932, allocations: 0 / 0.9705 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/2.932, allocations: 11.97 kB / 0.9705 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006809/2.939, allocations: 4.647 MB / 0.9751 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/2.939, allocations: 2.906 kB / 0.9751 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005989/2.94, allocations: 180.6 kB / 0.9753 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004928/2.945, allocations: 1.672 MB / 0.9769 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/2.945, allocations: 39.97 kB / 0.9769 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2161/3.161, allocations: 2.297 MB / 0.9792 GB, free: 458.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/3.161, allocations: 1 kB / 0.9792 GB, free: 458.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004775/3.166, allocations: 3.057 MB / 0.9822 GB, free: 457.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007521/3.166, allocations: 384.9 kB / 0.9825 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/3.167, allocations: 32.7 kB / 0.9826 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007048/3.167, allocations: 81.86 kB / 0.9826 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/3.168, allocations: 110.2 kB / 0.9827 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.429e-05/3.168, allocations: 48.97 kB / 0.9828 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007722/3.168, allocations: 0.5644 MB / 0.9833 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/3.168, allocations: 0.9688 kB / 0.9833 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005829/3.174, allocations: 1.808 MB / 0.9851 GB, free: 457.5 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,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,checkValve1.ouvert,checkValve1.touvert,checkValve1.tferme,checkValve2.ouvert,checkValve2.touvert,checkValve2.tferme) * Number of discrete states: 6 (checkValve2.touvert,checkValve2.tferme,checkValve1.touvert,checkValve1.tferme,checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 120 * 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 {(1,2), (11,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008274/3.183, allocations: 2.371 MB / 0.9874 GB, free: 457.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003786/3.186, allocations: 2.075 MB / 0.9894 GB, free: 456.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/3.186, allocations: 0.9688 kB / 0.9894 GB, free: 456.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001837/3.188, allocations: 0.9924 MB / 0.9904 GB, free: 456.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/3.192, allocations: 0.6056 MB / 0.991 GB, free: 456.8 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/3.196, allocations: 3.821 MB / 0.9947 GB, free: 455 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007665/3.197, allocations: 1.331 MB / 0.996 GB, free: 454.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0006602/3.198, allocations: 133.3 kB / 0.9962 GB, free: 454.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/3.198, allocations: 86.39 kB / 0.9962 GB, free: 454.3 MB / 0.8106 GB Notification: Performance of SimCode: time 9.42e-07/3.198, allocations: 3.547 kB / 0.9963 GB, free: 454.3 MB / 0.8106 GB Notification: Performance of Templates: time 0.08433/3.282, allocations: 69.35 MB / 1.064 GB, free: 404.2 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.pipe 2>&1) Environment - environmentSimulation: