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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.8409/0.8409, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.659e-05/1.661e-05, allocations: 4 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1544, allocations: 31.99 MB / 236.8 MB, free: 5.402 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.61/1.764, allocations: 299 MB / 0.5233 GB, free: 8.848 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4724/2.236, allocations: 186.4 MB / 0.7053 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006621/2.237, allocations: 8.844 kB / 0.7054 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005863/2.238, allocations: 215.2 kB / 0.7056 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001001/2.239, allocations: 448.4 kB / 0.706 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02526/2.264, allocations: 9.142 MB / 0.7149 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002163/2.266, allocations: 1.854 MB / 0.7167 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006222/2.267, allocations: 0.6084 MB / 0.7173 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006836/2.267, allocations: 0.618 MB / 0.7179 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005237/2.268, allocations: 0.5935 MB / 0.7185 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.004e-05/2.268, allocations: 49.28 kB / 0.7186 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03169/2.3, allocations: 20.19 MB / 0.7383 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003831/2.3, allocations: 210 kB / 0.7385 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001087/2.301, allocations: 0.7165 MB / 0.7392 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02198/2.323, allocations: 10.94 MB / 0.7498 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/2.323, allocations: 3.812 kB / 0.7499 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.923e-06/2.323, allocations: 0 / 0.7499 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.762e-05/2.323, allocations: 2.125 kB / 0.7499 GB, free: 14.52 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.006688/2.33, allocations: 2.632 MB / 0.7524 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/2.33, allocations: 8.25 kB / 0.7524 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002095/2.33, allocations: 217.9 kB / 0.7526 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000238/2.331, allocations: 166.9 kB / 0.7528 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007051/2.331, allocations: 0.5901 MB / 0.7534 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/2.331, allocations: 174.1 kB / 0.7535 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/2.332, allocations: 109.8 kB / 0.7536 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/2.334, allocations: 1.553 MB / 0.7552 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/2.334, allocations: 5.906 kB / 0.7552 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.191e-05/2.334, allocations: 48.28 kB / 0.7552 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-05/2.334, allocations: 62.11 kB / 0.7553 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/2.336, allocations: 1.058 MB / 0.7563 GB, free: 11.42 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.06153/2.397, allocations: 33.89 MB / 0.7894 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001923/2.399, allocations: 0.9843 MB / 0.7904 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009772/2.4, allocations: 0.6296 MB / 0.791 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3304/2.73, allocations: 160 MB / 0.9473 GB, free: 14.98 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/2.732, allocations: 0.7352 MB / 0.948 GB, free: 14.45 MB / 0.795 GB Notification: Performance of pre-optimization done (n=205): time 4.309e-06/2.732, allocations: 3.281 kB / 0.948 GB, free: 14.45 MB / 0.795 GB Notification: Performance of matching and sorting (n=205): time 0.03115/2.763, allocations: 6.749 MB / 0.9546 GB, free: 8.371 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/2.763, allocations: 225.5 kB / 0.9548 GB, free: 8.109 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/2.764, allocations: 0.7087 MB / 0.9555 GB, free: 7.555 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001011/2.764, allocations: 46.2 kB / 0.9555 GB, free: 7.516 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000396/2.765, allocations: 0.4965 MB / 0.956 GB, free: 7.023 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005224/2.765, allocations: 0.6489 MB / 0.9566 GB, free: 6.387 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/2.765, allocations: 161.6 kB / 0.9568 GB, free: 6.223 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001289/2.766, allocations: 357.9 kB / 0.9571 GB, free: 5.867 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008883/2.766, allocations: 455.2 kB / 0.9576 GB, free: 5.422 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/2.768, allocations: 0.8295 MB / 0.9584 GB, free: 4.449 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003051/2.771, allocations: 1.688 MB / 0.96 GB, free: 2.672 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/2.771, allocations: 3.938 kB / 0.96 GB, free: 2.668 MB / 0.795 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003551/2.774, allocations: 1.958 MB / 0.9619 GB, free: 0.7617 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/2.774, allocations: 8 kB / 0.9619 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/2.774, allocations: 14.91 kB / 0.962 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005725/2.78, allocations: 2.039 MB / 0.964 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002975/2.78, allocations: 83.58 kB / 0.964 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/2.784, allocations: 2.429 MB / 0.9664 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009709/2.785, allocations: 190.1 kB / 0.9666 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.205e-05/2.785, allocations: 55.98 kB / 0.9666 GB, free: 11.92 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.0005479/2.785, allocations: 293.3 kB / 0.9669 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/2.786, allocations: 126.4 kB / 0.967 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/2.79, allocations: 2.87 MB / 0.9698 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00301/2.793, allocations: 1.966 MB / 0.9718 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/2.793, allocations: 0 / 0.9718 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/2.793, allocations: 12 kB / 0.9718 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006915/2.8, allocations: 4.647 MB / 0.9763 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/2.8, allocations: 4 kB / 0.9763 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005982/2.8, allocations: 187.5 kB / 0.9765 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004737/2.805, allocations: 1.663 MB / 0.9781 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.074e-05/2.805, allocations: 35.98 kB / 0.9782 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1729/2.978, allocations: 2.303 MB / 0.9804 GB, free: 458.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/2.978, allocations: 1.156 kB / 0.9804 GB, free: 458.2 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004528/2.983, allocations: 3.062 MB / 0.9834 GB, free: 457.9 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005783/2.983, allocations: 373.2 kB / 0.9838 GB, free: 457.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/2.983, allocations: 34.61 kB / 0.9838 GB, free: 457.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006884/2.984, allocations: 84.78 kB / 0.9839 GB, free: 457.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/2.984, allocations: 110.6 kB / 0.984 GB, free: 457.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.802e-05/2.984, allocations: 47.34 kB / 0.984 GB, free: 457.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007122/2.985, allocations: 0.5625 MB / 0.9846 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/2.985, allocations: 0 / 0.9846 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004132/2.989, allocations: 1.818 MB / 0.9863 GB, free: 457.6 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.01056/3, allocations: 5.882 MB / 0.9921 GB, free: 456.6 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003151/3.003, allocations: 2.079 MB / 0.9941 GB, free: 456.1 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/3.003, allocations: 3.156 kB / 0.9941 GB, free: 456.1 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001746/3.005, allocations: 0.9856 MB / 0.9951 GB, free: 456.1 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/3.008, allocations: 0.5975 MB / 0.9957 GB, free: 456.1 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01621/3.024, allocations: 12.78 MB / 1.008 GB, free: 451.1 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006282/3.025, allocations: 1.328 MB / 1.009 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005689/3.026, allocations: 143 kB / 1.01 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005895/3.026, allocations: 0.6864 MB / 1.01 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of SimCode: time 8.31e-07/3.026, allocations: 3.938 kB / 1.01 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/3.133, allocations: 86.15 MB / 1.094 GB, free: 377.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/3.133, allocations: 267.8 kB / 1.095 GB, free: 377.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.301/8.434, allocations: 64 / 1.095 GB, free: 377.1 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestCheckValve_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestCheckValve.pipe 2>&1)