Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9856/0.9856, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.857e-05/1.86e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2553, allocations: 31.98 MB / 236.8 MB, free: 5.426 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.TestCheckValve): time 2.029/2.284, allocations: 299.3 MB / 0.5235 GB, free: 7.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7708/3.055, allocations: 195.7 MB / 0.7147 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003809/3.059, allocations: 28.19 kB / 0.7147 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001609/3.061, allocations: 173.5 kB / 0.7149 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005107/3.066, allocations: 0.5922 MB / 0.7155 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.05167/3.118, allocations: 11.42 MB / 0.7266 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005271/3.123, allocations: 2.58 MB / 0.7291 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/3.125, allocations: 1.138 MB / 0.7302 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002207/3.127, allocations: 0.8446 MB / 0.7311 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/3.129, allocations: 0.9637 MB / 0.732 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002144/3.129, allocations: 109 kB / 0.7321 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05837/3.187, allocations: 22.8 MB / 0.7544 GB, free: 40 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001311/3.189, allocations: 411.4 kB / 0.7548 GB, free: 0 / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002642/3.191, allocations: 1.087 MB / 0.7558 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05255/3.244, allocations: 13.43 MB / 0.7689 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/3.244, allocations: 0 / 0.7689 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.565e-06/3.244, allocations: 0 / 0.7689 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.786e-05/3.244, allocations: 6.938 kB / 0.769 GB, free: 10.7 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01304/3.257, allocations: 3.494 MB / 0.7724 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/3.257, allocations: 11.84 kB / 0.7724 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008855/3.258, allocations: 265.9 kB / 0.7726 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/3.26, allocations: 0.9737 MB / 0.7736 GB, free: 7.809 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002369/3.26, allocations: 248.6 kB / 0.7738 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003875/3.261, allocations: 226 kB / 0.774 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004642/3.265, allocations: 2.418 MB / 0.7764 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.198e-05/3.265, allocations: 8 kB / 0.7764 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002216/3.265, allocations: 93.69 kB / 0.7765 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.19e-05/3.266, allocations: 58.28 kB / 0.7766 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/3.269, allocations: 1.894 MB / 0.7784 GB, free: 5.707 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.02845/3.298, allocations: 22.34 MB / 0.8002 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/3.3, allocations: 1.2 MB / 0.8014 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009661/3.301, allocations: 492.7 kB / 0.8019 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8651/4.166, allocations: 295.2 MB / 1.09 GB, free: 334.7 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/4.168, allocations: 0.5977 MB / 1.091 GB, free: 334.2 MB / 0.795 GB Notification: Performance of pre-optimization done (n=104): time 7.595e-06/4.168, allocations: 0 / 1.091 GB, free: 334.2 MB / 0.795 GB Notification: Performance of matching and sorting (n=104): time 0.01564/4.183, allocations: 3.963 MB / 1.095 GB, free: 330.7 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.775e-05/4.183, allocations: 256.8 kB / 1.095 GB, free: 330.4 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/4.185, allocations: 1.231 MB / 1.096 GB, free: 329.5 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/4.186, allocations: 53 kB / 1.096 GB, free: 329.5 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008452/4.186, allocations: 1.025 MB / 1.097 GB, free: 328.7 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/4.187, allocations: 358.9 kB / 1.097 GB, free: 328.4 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/4.187, allocations: 193.2 kB / 1.098 GB, free: 328.3 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 5.781e-05/4.187, allocations: 305.2 kB / 1.098 GB, free: 328 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009037/4.188, allocations: 448.7 kB / 1.098 GB, free: 327.7 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/4.189, allocations: 1.265 MB / 1.1 GB, free: 326.2 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003317/4.193, allocations: 2.061 MB / 1.102 GB, free: 324.3 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.722e-05/4.193, allocations: 8 kB / 1.102 GB, free: 324.2 MB / 0.795 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004346/4.197, allocations: 2.196 MB / 1.104 GB, free: 322.6 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.784e-05/4.197, allocations: 16 kB / 1.104 GB, free: 322.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.373e-05/4.197, allocations: 31.31 kB / 1.104 GB, free: 322.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004833/4.202, allocations: 1.187 MB / 1.105 GB, free: 321.4 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008078/4.203, allocations: 294.7 kB / 1.105 GB, free: 321.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/4.205, allocations: 1.928 MB / 1.107 GB, free: 319.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/4.207, allocations: 255.9 kB / 1.107 GB, free: 319.3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/4.207, allocations: 105.1 kB / 1.107 GB, free: 319.2 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: 69 ($PRE.checkValve1.touvert,$whenCondition7,$PRE.checkValve1.tferme,$whenCondition6,$PRE.checkValve2.touvert,$whenCondition5,$PRE.checkValve2.tferme,$whenCondition4,$PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,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,checkValve1.fluid,checkValve2.fluid,perteDP.fluid,perteDP1.fluid,checkValve2.tferme,checkValve2.touvert,checkValve2.ouvert,$PRE.checkValve2.ouvert,checkValve1.tferme,checkValve1.touvert,checkValve1.ouvert,$PRE.checkValve1.ouvert,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,checkValve3.fluid,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,sourceP1.fluid1,volumeC.fluid1,volumeD.fluid1,sourceP.fluid1,sourceP1.C.diff_on_2,checkValve3.C2.diff_on_1,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,checkValve2.C2.diff_on_1,volumeD.Cs1.diff_on_1,staticCentrifugalPump1.C2.diff_on_1,checkValve1.C2.diff_on_1,volumeD.Cs3.diff_on_1,volumeD.Cs3.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 195 * 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 {(10,40), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0009785/4.208, allocations: 427.3 kB / 1.108 GB, free: 318.9 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003511/4.208, allocations: 154.1 kB / 1.108 GB, free: 318.7 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/4.211, allocations: 1.392 MB / 1.109 GB, free: 317.7 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/4.211, allocations: 12 kB / 1.109 GB, free: 317.7 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/4.211, allocations: 4 kB / 1.109 GB, free: 317.7 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/4.211, allocations: 3.984 kB / 1.109 GB, free: 317.7 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004903/4.216, allocations: 3.138 MB / 1.112 GB, free: 315.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/4.216, allocations: 0 / 1.112 GB, free: 315.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/4.217, allocations: 91.95 kB / 1.113 GB, free: 315.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004038/4.221, allocations: 0.9647 MB / 1.113 GB, free: 314.4 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-05/4.221, allocations: 33.47 kB / 1.113 GB, free: 314.3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001809/4.223, allocations: 1.78 MB / 1.115 GB, free: 312.8 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/4.223, allocations: 0 / 1.115 GB, free: 312.8 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002901/4.225, allocations: 1.766 MB / 1.117 GB, free: 311 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007027/4.226, allocations: 339.3 kB / 1.117 GB, free: 310.6 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000335/4.227, allocations: 23.98 kB / 1.117 GB, free: 310.6 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007738/4.227, allocations: 56.03 kB / 1.117 GB, free: 310.6 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/4.227, allocations: 76.81 kB / 1.117 GB, free: 310.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.396e-05/4.228, allocations: 39.98 kB / 1.117 GB, free: 310.4 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001112/4.229, allocations: 0.7549 MB / 1.118 GB, free: 309.7 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/4.229, allocations: 3.469 kB / 1.118 GB, free: 309.7 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.008165/4.237, allocations: 2.249 MB / 1.12 GB, free: 307.7 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 ($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 (checkValve1.touvert,checkValve1.tferme,checkValve2.touvert,checkValve2.tferme,checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 53 * 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 {(1,2), (8,37)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01215/4.249, allocations: 2.925 MB / 1.123 GB, free: 305.2 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003564/4.253, allocations: 1.32 MB / 1.125 GB, free: 303.9 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/4.253, allocations: 0.8125 kB / 1.125 GB, free: 303.9 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001316/4.254, allocations: 0.5418 MB / 1.125 GB, free: 303.4 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/4.256, allocations: 315.8 kB / 1.125 GB, free: 303.1 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006548/4.263, allocations: 3.81 MB / 1.129 GB, free: 299.3 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/4.264, allocations: 1.322 MB / 1.13 GB, free: 297.9 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001136/4.265, allocations: 250.2 kB / 1.131 GB, free: 297.7 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002846/4.265, allocations: 99.42 kB / 1.131 GB, free: 297.6 MB / 0.795 GB Notification: Performance of SimCode: time 1.192e-06/4.266, allocations: 0 / 1.131 GB, free: 297.6 MB / 0.795 GB Notification: Performance of Templates: time 0.09563/4.361, allocations: 66.79 MB / 1.196 GB, free: 231.6 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve.pipe 2>&1) Environment - environmentSimulation: