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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCheckValve",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.8096/0.8096, allocations: 150.8 MB / 166.1 MB, free: 15.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.848e-05/1.857e-05, allocations: 4 kB / 204.9 MB, free: 9.711 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2048, allocations: 31.99 MB / 236.8 MB, free: 5.281 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 1.976/2.181, allocations: 300.3 MB / 0.5246 GB, free: 7.363 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.8491/3.03, allocations: 195.7 MB / 0.7157 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/3.032, allocations: 31.09 kB / 0.7158 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005524/3.032, allocations: 165.2 kB / 0.7159 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002585/3.035, allocations: 0.5966 MB / 0.7165 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.04528/3.08, allocations: 11.41 MB / 0.7276 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004797/3.085, allocations: 2.58 MB / 0.7302 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001899/3.087, allocations: 1.13 MB / 0.7313 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/3.089, allocations: 0.8469 MB / 0.7321 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/3.09, allocations: 0.9649 MB / 0.733 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001759/3.09, allocations: 110 kB / 0.7331 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.051/3.141, allocations: 22.8 MB / 0.7554 GB, free: 0 / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001381/3.142, allocations: 426.2 kB / 0.7558 GB, free: 0 / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002373/3.145, allocations: 1.095 MB / 0.7569 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04536/3.19, allocations: 13.42 MB / 0.77 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/3.19, allocations: 0 / 0.77 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.524e-06/3.19, allocations: 0 / 0.77 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.632e-05/3.19, allocations: 0 / 0.77 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.0129/3.203, allocations: 3.505 MB / 0.7734 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/3.203, allocations: 9.469 kB / 0.7734 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007584/3.204, allocations: 322 kB / 0.7737 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006008/3.205, allocations: 266.6 kB / 0.774 GB, free: 8.25 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00162/3.206, allocations: 0.9635 MB / 0.7749 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002304/3.206, allocations: 252.9 kB / 0.7752 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003685/3.207, allocations: 228.4 kB / 0.7754 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004075/3.211, allocations: 2.416 MB / 0.7777 GB, free: 6.648 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.112e-05/3.211, allocations: 12.75 kB / 0.7778 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002324/3.211, allocations: 96.81 kB / 0.7778 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-05/3.211, allocations: 58.45 kB / 0.7779 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003719/3.215, allocations: 1.898 MB / 0.7798 GB, free: 5.523 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.02972/3.245, allocations: 22.33 MB / 0.8016 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002121/3.247, allocations: 1.199 MB / 0.8027 GB, free: 12.74 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009156/3.248, allocations: 499.3 kB / 0.8032 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8655/4.113, allocations: 295.2 MB / 1.091 GB, free: 333.5 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001784/4.115, allocations: 0.5941 MB / 1.092 GB, free: 333 MB / 0.795 GB Notification: Performance of pre-optimization done (n=104): time 9.067e-06/4.115, allocations: 0 / 1.092 GB, free: 333 MB / 0.795 GB Notification: Performance of matching and sorting (n=104): time 0.01673/4.132, allocations: 3.966 MB / 1.096 GB, free: 329.6 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/4.132, allocations: 252.6 kB / 1.096 GB, free: 329.3 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/4.134, allocations: 1.234 MB / 1.097 GB, free: 328.4 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001609/4.135, allocations: 48.83 kB / 1.097 GB, free: 328.3 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.001006/4.136, allocations: 1.027 MB / 1.098 GB, free: 327.6 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004182/4.136, allocations: 363.2 kB / 1.099 GB, free: 327.3 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/4.136, allocations: 197.4 kB / 1.099 GB, free: 327.2 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.357e-05/4.137, allocations: 301.1 kB / 1.099 GB, free: 326.9 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009502/4.137, allocations: 447.7 kB / 1.1 GB, free: 326.6 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/4.139, allocations: 1.261 MB / 1.101 GB, free: 325.1 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003497/4.142, allocations: 2.049 MB / 1.103 GB, free: 323.1 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-05/4.142, allocations: 10.81 kB / 1.103 GB, free: 323.1 MB / 0.795 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004158/4.147, allocations: 2.197 MB / 1.105 GB, free: 321.4 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/4.147, allocations: 21.23 kB / 1.105 GB, free: 321.4 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.366e-05/4.147, allocations: 28 kB / 1.105 GB, free: 321.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004941/4.152, allocations: 1.182 MB / 1.106 GB, free: 320.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/4.153, allocations: 297.5 kB / 1.107 GB, free: 320 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/4.155, allocations: 1.93 MB / 1.108 GB, free: 318.4 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/4.157, allocations: 244.5 kB / 1.109 GB, free: 318.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/4.157, allocations: 111.7 kB / 1.109 GB, free: 318.1 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.001018/4.158, allocations: 442.5 kB / 1.109 GB, free: 317.8 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003791/4.159, allocations: 158 kB / 1.109 GB, free: 317.6 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003068/4.162, allocations: 1.375 MB / 1.111 GB, free: 316.6 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/4.162, allocations: 12 kB / 1.111 GB, free: 316.6 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/4.162, allocations: 0 / 1.111 GB, free: 316.6 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/4.162, allocations: 11.97 kB / 1.111 GB, free: 316.6 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004744/4.167, allocations: 3.142 MB / 1.114 GB, free: 314.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/4.167, allocations: 3.984 kB / 1.114 GB, free: 314.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003482/4.167, allocations: 91.72 kB / 1.114 GB, free: 314.1 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004093/4.171, allocations: 0.9672 MB / 1.115 GB, free: 313.2 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/4.171, allocations: 28.11 kB / 1.115 GB, free: 313.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/4.173, allocations: 1.773 MB / 1.117 GB, free: 311.7 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/4.173, allocations: 0 / 1.117 GB, free: 311.7 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/4.176, allocations: 1.775 MB / 1.118 GB, free: 310.1 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006674/4.177, allocations: 322.9 kB / 1.119 GB, free: 309.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000318/4.177, allocations: 27.98 kB / 1.119 GB, free: 309.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007649/4.178, allocations: 47.97 kB / 1.119 GB, free: 309.7 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/4.178, allocations: 88.83 kB / 1.119 GB, free: 309.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/4.178, allocations: 39.97 kB / 1.119 GB, free: 309.6 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001115/4.179, allocations: 0.7549 MB / 1.12 GB, free: 308.8 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/4.179, allocations: 0 / 1.12 GB, free: 308.8 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00738/4.187, allocations: 2.253 MB / 1.122 GB, free: 306.8 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.01483/4.201, allocations: 5.131 MB / 1.127 GB, free: 302.1 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003383/4.205, allocations: 1.315 MB / 1.128 GB, free: 300.8 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/4.205, allocations: 1 kB / 1.128 GB, free: 300.8 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001311/4.206, allocations: 0.5384 MB / 1.129 GB, free: 300.3 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/4.209, allocations: 314.4 kB / 1.129 GB, free: 300 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02737/4.236, allocations: 15.06 MB / 1.144 GB, free: 283.7 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/4.237, allocations: 1.327 MB / 1.145 GB, free: 282.4 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001084/4.238, allocations: 238.2 kB / 1.145 GB, free: 282.2 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008327/4.239, allocations: 0.7141 MB / 1.146 GB, free: 281.4 MB / 0.795 GB Notification: Performance of SimCode: time 2.034e-06/4.239, allocations: 4 kB / 1.146 GB, free: 281.4 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1299/4.369, allocations: 82 MB / 1.226 GB, free: 200.7 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000212/4.369, allocations: 275.4 kB / 1.226 GB, free: 200.3 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.594/9.963, allocations: 1.75 kB / 1.226 GB, free: 200.3 MB / 0.795 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCheckValve_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestCheckValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCheckValve.pipe 2>&1)