Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.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.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve",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.8917/0.8917, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.957e-05/1.973e-05, allocations: 4 kB / 204.9 MB, free: 9.711 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2751, allocations: 31.98 MB / 236.8 MB, free: 5.449 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.TestDynamicCheckValve): time 2.024/2.3, allocations: 294.9 MB / 0.5193 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2596/2.559, allocations: 186.6 MB / 0.7015 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005342/2.56, allocations: 4 kB / 0.7015 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000253/2.56, allocations: 43.69 kB / 0.7015 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004904/2.561, allocations: 135 kB / 0.7017 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.5447/3.105, allocations: 8.938 MB / 0.7104 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008868/3.106, allocations: 471.4 kB / 0.7108 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003954/3.107, allocations: 207.6 kB / 0.711 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003291/3.107, allocations: 162.5 kB / 0.7112 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/3.107, allocations: 190 kB / 0.7114 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/3.107, allocations: 16.5 kB / 0.7114 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04726/3.155, allocations: 20 MB / 0.7309 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002475/3.155, allocations: 67.45 kB / 0.731 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004063/3.155, allocations: 219.6 kB / 0.7312 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03285/3.188, allocations: 9.849 MB / 0.7408 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/3.188, allocations: 0 / 0.7408 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.134e-06/3.188, allocations: 0 / 0.7408 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.843e-06/3.188, allocations: 0 / 0.7408 GB, free: 1.816 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.006499/3.195, allocations: 1.779 MB / 0.7426 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/3.195, allocations: 9.375 kB / 0.7426 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.141e-05/3.195, allocations: 82.7 kB / 0.7426 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.445e-05/3.195, allocations: 53.41 kB / 0.7427 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/3.195, allocations: 327.4 kB / 0.743 GB, free: 300 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.528e-05/3.195, allocations: 52.48 kB / 0.7431 GB, free: 268 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/3.195, allocations: 41.06 kB / 0.7431 GB, free: 268 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005963/3.196, allocations: 406.2 kB / 0.7435 GB, free: 112 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/3.196, allocations: 15.27 kB / 0.7435 GB, free: 100 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/3.196, allocations: 16.78 kB / 0.7435 GB, free: 100 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/3.196, allocations: 12.22 kB / 0.7435 GB, free: 100 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004993/3.197, allocations: 287.2 kB / 0.7438 GB, free: 56 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/3.199, allocations: 2.025 MB / 0.7458 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006244/3.199, allocations: 252.9 kB / 0.746 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/3.199, allocations: 84.77 kB / 0.7461 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2471/3.447, allocations: 123.5 MB / 0.8667 GB, free: 1.762 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003599/3.447, allocations: 140.7 kB / 0.8669 GB, free: 1.645 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 2.685e-06/3.447, allocations: 0 / 0.8669 GB, free: 1.645 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001132/3.448, allocations: 410.7 kB / 0.8673 GB, free: 1.285 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/3.448, allocations: 55.41 kB / 0.8673 GB, free: 1.219 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004171/3.449, allocations: 319 kB / 0.8676 GB, free: 0.9609 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/3.449, allocations: 25.7 kB / 0.8676 GB, free: 0.9297 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/3.449, allocations: 246.5 kB / 0.8679 GB, free: 0.7344 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 6.663e-05/3.449, allocations: 73.16 kB / 0.8679 GB, free: 0.6758 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.391e-05/3.449, allocations: 40.88 kB / 0.868 GB, free: 0.6406 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000127/3.449, allocations: 344.3 kB / 0.8683 GB, free: 320 kB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/3.449, allocations: 78.73 kB / 0.8684 GB, free: 264 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/3.45, allocations: 179.3 kB / 0.8686 GB, free: 72 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/3.45, allocations: 275.4 kB / 0.8688 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/3.45, allocations: 0 / 0.8688 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008668/3.451, allocations: 391.8 kB / 0.8692 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/3.451, allocations: 4.781 kB / 0.8692 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/3.451, allocations: 4.438 kB / 0.8692 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/3.452, allocations: 202.6 kB / 0.8694 GB, free: 15.35 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/3.452, allocations: 54.75 kB / 0.8694 GB, free: 15.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002231/3.454, allocations: 2.222 MB / 0.8716 GB, free: 13.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/3.455, allocations: 51.27 kB / 0.8717 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/3.455, allocations: 18.06 kB / 0.8717 GB, free: 13.03 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * 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 {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001983/3.455, allocations: 164 kB / 0.8718 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.568e-05/3.455, allocations: 31.62 kB / 0.8719 GB, free: 12.86 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007213/3.456, allocations: 322.3 kB / 0.8722 GB, free: 12.6 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/3.456, allocations: 0 / 0.8722 GB, free: 12.6 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/3.456, allocations: 3.984 kB / 0.8722 GB, free: 12.6 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/3.456, allocations: 0 / 0.8722 GB, free: 12.6 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004574/3.456, allocations: 385.2 kB / 0.8725 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/3.456, allocations: 0 / 0.8725 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/3.457, allocations: 50.75 kB / 0.8726 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005362/3.457, allocations: 98.8 kB / 0.8727 GB, free: 12.11 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/3.457, allocations: 3.875 kB / 0.8727 GB, free: 12.11 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004402/3.458, allocations: 0.5768 MB / 0.8733 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/3.458, allocations: 0 / 0.8733 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007995/3.458, allocations: 384.9 kB / 0.8736 GB, free: 11.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/3.459, allocations: 128 kB / 0.8737 GB, free: 11.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/3.459, allocations: 7.625 kB / 0.8737 GB, free: 11.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/3.459, allocations: 19.73 kB / 0.8738 GB, free: 11.07 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/3.459, allocations: 27.89 kB / 0.8738 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/3.459, allocations: 7.625 kB / 0.8738 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002444/3.459, allocations: 231.7 kB / 0.874 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/3.459, allocations: 4.062 kB / 0.874 GB, free: 10.85 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.005055/3.464, allocations: 1.467 MB / 0.8755 GB, free: 9.484 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00942/3.474, allocations: 3.037 MB / 0.8784 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008077/3.474, allocations: 359 kB / 0.8788 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/3.475, allocations: 0 / 0.8788 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002768/3.475, allocations: 109.4 kB / 0.8789 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/3.475, allocations: 86.44 kB / 0.879 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007803/3.483, allocations: 3.998 MB / 0.8829 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/3.484, allocations: 0.7985 MB / 0.8836 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000231/3.484, allocations: 50.58 kB / 0.8837 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/3.484, allocations: 135.6 kB / 0.8838 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of SimCode: time 7.21e-07/3.484, allocations: 0 / 0.8838 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09907/3.583, allocations: 52.13 MB / 0.9347 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/3.583, allocations: 288.2 kB / 0.935 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.304/7.888, allocations: 1.859 kB / 0.935 GB, free: 13.52 MB / 0.7794 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)