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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealCheckValve",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.7774/0.7774, allocations: 150.8 MB / 166.1 MB, free: 15.18 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.622e-05/1.64e-05, allocations: 4 kB / 204.9 MB, free: 9.586 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1481, allocations: 31.99 MB / 236.8 MB, free: 5.441 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.493/1.641, allocations: 299.3 MB / 0.5236 GB, free: 8.598 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4451/2.087, allocations: 186.6 MB / 0.7058 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005337/2.087, allocations: 10.34 kB / 0.7058 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005101/2.088, allocations: 220.9 kB / 0.706 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008749/2.089, allocations: 469.7 kB / 0.7064 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02185/2.11, allocations: 9.202 MB / 0.7154 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002136/2.113, allocations: 1.959 MB / 0.7173 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006541/2.113, allocations: 0.6844 MB / 0.718 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006731/2.114, allocations: 0.6531 MB / 0.7186 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006107/2.114, allocations: 0.6492 MB / 0.7193 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000107/2.115, allocations: 56.34 kB / 0.7193 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02876/2.143, allocations: 20.2 MB / 0.7391 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003798/2.144, allocations: 229.1 kB / 0.7393 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009713/2.145, allocations: 0.7605 MB / 0.74 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02059/2.165, allocations: 11.06 MB / 0.7508 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/2.165, allocations: 0 / 0.7508 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.325e-06/2.165, allocations: 0 / 0.7508 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.481e-05/2.165, allocations: 1.969 kB / 0.7508 GB, free: 13.91 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.006223/2.172, allocations: 2.726 MB / 0.7535 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/2.172, allocations: 11.31 kB / 0.7535 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002023/2.172, allocations: 221.7 kB / 0.7537 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/2.172, allocations: 187.6 kB / 0.7539 GB, free: 12 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006943/2.173, allocations: 0.6506 MB / 0.7545 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/2.173, allocations: 182.1 kB / 0.7547 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/2.173, allocations: 128.8 kB / 0.7548 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/2.175, allocations: 1.679 MB / 0.7565 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.869e-05/2.175, allocations: 5 kB / 0.7565 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-05/2.175, allocations: 55.09 kB / 0.7565 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-05/2.175, allocations: 64.23 kB / 0.7566 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/2.177, allocations: 1.132 MB / 0.7577 GB, free: 10.64 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.05816/2.235, allocations: 34.66 MB / 0.7915 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/2.237, allocations: 1.198 MB / 0.7927 GB, free: 11.76 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009589/2.238, allocations: 0.6563 MB / 0.7933 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3109/2.549, allocations: 160 MB / 0.9496 GB, free: 12.93 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001314/2.55, allocations: 0.7586 MB / 0.9503 GB, free: 12.4 MB / 0.795 GB Notification: Performance of pre-optimization done (n=206): time 2.585e-06/2.55, allocations: 0 / 0.9503 GB, free: 12.4 MB / 0.795 GB Notification: Performance of matching and sorting (n=206): time 0.01988/2.57, allocations: 5.165 MB / 0.9554 GB, free: 7.441 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/2.571, allocations: 222.2 kB / 0.9556 GB, free: 7.172 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008895/2.571, allocations: 0.7946 MB / 0.9564 GB, free: 6.352 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.804e-05/2.571, allocations: 51.56 kB / 0.9564 GB, free: 6.297 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/2.572, allocations: 0.5565 MB / 0.957 GB, free: 5.738 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004405/2.572, allocations: 0.6541 MB / 0.9576 GB, free: 5.094 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/2.573, allocations: 169.8 kB / 0.9578 GB, free: 4.922 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.46e-05/2.573, allocations: 305.1 kB / 0.9581 GB, free: 4.621 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008356/2.573, allocations: 487.2 kB / 0.9585 GB, free: 4.145 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/2.575, allocations: 0.8862 MB / 0.9594 GB, free: 3.098 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005072/2.58, allocations: 2.122 MB / 0.9615 GB, free: 0.8711 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/2.58, allocations: 7.984 kB / 0.9615 GB, free: 0.8633 MB / 0.795 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.00336/2.583, allocations: 2.042 MB / 0.9635 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/2.583, allocations: 12 kB / 0.9635 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/2.583, allocations: 8 kB / 0.9635 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005169/2.588, allocations: 1.997 MB / 0.9654 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/2.589, allocations: 95.58 kB / 0.9655 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/2.592, allocations: 2.511 MB / 0.968 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008965/2.593, allocations: 194 kB / 0.9682 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.247e-05/2.593, allocations: 61.84 kB / 0.9682 GB, free: 9.977 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.0004951/2.593, allocations: 317.4 kB / 0.9685 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/2.594, allocations: 138.2 kB / 0.9687 GB, free: 9.535 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004148/2.598, allocations: 2.884 MB / 0.9715 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003059/2.601, allocations: 1.986 MB / 0.9734 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/2.601, allocations: 4 kB / 0.9734 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/2.601, allocations: 7.969 kB / 0.9734 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1677/2.769, allocations: 4.668 MB / 0.978 GB, free: 457.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.897e-05/2.769, allocations: 7.859 kB / 0.978 GB, free: 457.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006385/2.769, allocations: 177.5 kB / 0.9782 GB, free: 457.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00407/2.773, allocations: 1.524 MB / 0.9796 GB, free: 457.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/2.773, allocations: 36.81 kB / 0.9797 GB, free: 457.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00262/2.776, allocations: 2.379 MB / 0.982 GB, free: 456.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/2.776, allocations: 0 / 0.982 GB, free: 456.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004415/2.781, allocations: 3.11 MB / 0.985 GB, free: 456 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004893/2.781, allocations: 385.3 kB / 0.9854 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/2.781, allocations: 31.23 kB / 0.9854 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006863/2.782, allocations: 79.09 kB / 0.9855 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/2.782, allocations: 112.5 kB / 0.9856 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.398e-05/2.782, allocations: 49.19 kB / 0.9857 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006436/2.783, allocations: 0.6228 MB / 0.9863 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/2.783, allocations: 0 / 0.9863 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003989/2.787, allocations: 1.835 MB / 0.9881 GB, free: 455.7 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.01009/2.797, allocations: 5.931 MB / 0.9939 GB, free: 454.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00333/2.8, allocations: 2.116 MB / 0.9959 GB, free: 454.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/2.8, allocations: 0 / 0.9959 GB, free: 454.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001911/2.802, allocations: 1.046 MB / 0.997 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/2.805, allocations: 0.5739 MB / 0.9975 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/2.821, allocations: 13.52 MB / 1.011 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005947/2.821, allocations: 1.352 MB / 1.012 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005885/2.822, allocations: 149.7 kB / 1.012 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005678/2.823, allocations: 0.7109 MB / 1.013 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of SimCode: time 7.71e-07/2.823, allocations: 0 / 1.013 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09678/2.919, allocations: 86.43 MB / 1.097 GB, free: 373.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/2.92, allocations: 281.9 kB / 1.098 GB, free: 373.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.142/8.062, allocations: 2.672 kB / 1.098 GB, free: 373.4 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealCheckValve_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealCheckValve.pipe 2>&1)