Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_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.8497/0.8497, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.383e-05/1.386e-05, allocations: 0 / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1542, allocations: 31.99 MB / 236.9 MB, free: 5.391 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.526/1.68, allocations: 294.8 MB / 0.5192 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1912/1.872, allocations: 186.6 MB / 0.7014 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003239/1.872, allocations: 7.938 kB / 0.7014 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001938/1.872, allocations: 51.61 kB / 0.7015 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004496/1.873, allocations: 131.1 kB / 0.7016 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3089/2.181, allocations: 8.951 MB / 0.7103 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006996/2.182, allocations: 470.5 kB / 0.7108 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/2.183, allocations: 211.3 kB / 0.711 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003321/2.183, allocations: 159.8 kB / 0.7111 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003182/2.183, allocations: 189.4 kB / 0.7113 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.139e-05/2.183, allocations: 19 kB / 0.7113 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03211/2.215, allocations: 19.99 MB / 0.7309 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001806/2.216, allocations: 69.17 kB / 0.7309 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002815/2.216, allocations: 218.2 kB / 0.7311 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02078/2.237, allocations: 9.848 MB / 0.7407 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/2.237, allocations: 3.984 kB / 0.7408 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.443e-06/2.237, allocations: 0 / 0.7408 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.741e-06/2.237, allocations: 0.9375 kB / 0.7408 GB, free: 1.926 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.004292/2.241, allocations: 1.779 MB / 0.7425 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/2.241, allocations: 8.438 kB / 0.7425 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.601e-05/2.241, allocations: 83.92 kB / 0.7426 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.218e-05/2.241, allocations: 52.38 kB / 0.7426 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/2.242, allocations: 323.1 kB / 0.7429 GB, free: 416 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.847e-05/2.242, allocations: 60.78 kB / 0.743 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/2.242, allocations: 38.12 kB / 0.743 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005112/2.242, allocations: 410.1 kB / 0.7434 GB, free: 228 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/2.242, allocations: 7.844 kB / 0.7434 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/2.242, allocations: 24.58 kB / 0.7435 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/2.242, allocations: 10.12 kB / 0.7435 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/2.243, allocations: 284 kB / 0.7437 GB, free: 172 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/2.244, allocations: 2.036 MB / 0.7457 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005684/2.245, allocations: 244.3 kB / 0.746 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/2.245, allocations: 87.2 kB / 0.746 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2466/2.492, allocations: 123.5 MB / 0.8667 GB, free: 2.043 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003133/2.492, allocations: 140.8 kB / 0.8668 GB, free: 1.922 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 1.863e-06/2.492, allocations: 0 / 0.8668 GB, free: 1.922 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001024/2.493, allocations: 416.2 kB / 0.8672 GB, free: 1.562 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/2.493, allocations: 59.25 kB / 0.8673 GB, free: 1.496 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003867/2.494, allocations: 315.3 kB / 0.8676 GB, free: 1.238 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/2.494, allocations: 29.45 kB / 0.8676 GB, free: 1.207 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/2.494, allocations: 250.3 kB / 0.8678 GB, free: 1.004 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 6.132e-05/2.494, allocations: 71.58 kB / 0.8679 GB, free: 0.9453 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/2.494, allocations: 39.62 kB / 0.8679 GB, free: 0.9141 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001263/2.494, allocations: 345.5 kB / 0.8683 GB, free: 0.582 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/2.494, allocations: 82.23 kB / 0.8683 GB, free: 0.5273 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/2.495, allocations: 182.4 kB / 0.8685 GB, free: 348 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/2.495, allocations: 266.4 kB / 0.8688 GB, free: 112 kB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/2.495, allocations: 0 / 0.8688 GB, free: 112 kB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008693/2.496, allocations: 394.9 kB / 0.8691 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/2.496, allocations: 7.984 kB / 0.8691 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/2.496, allocations: 8.188 kB / 0.8692 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/2.497, allocations: 192.2 kB / 0.8693 GB, free: 15.62 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/2.497, allocations: 57.47 kB / 0.8694 GB, free: 15.58 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/2.499, allocations: 2.215 MB / 0.8716 GB, free: 13.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/2.5, allocations: 63.06 kB / 0.8716 GB, free: 13.31 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/2.5, allocations: 12 kB / 0.8716 GB, free: 13.3 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.000187/2.5, allocations: 161.4 kB / 0.8718 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.955e-05/2.5, allocations: 31.62 kB / 0.8718 GB, free: 13.13 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007348/2.501, allocations: 318.6 kB / 0.8721 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/2.501, allocations: 0 / 0.8721 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/2.501, allocations: 0 / 0.8721 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/2.501, allocations: 0 / 0.8721 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/2.501, allocations: 393.6 kB / 0.8725 GB, free: 12.53 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/2.501, allocations: 0 / 0.8725 GB, free: 12.53 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/2.501, allocations: 49.61 kB / 0.8725 GB, free: 12.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005017/2.502, allocations: 95.95 kB / 0.8726 GB, free: 12.39 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/2.502, allocations: 7.672 kB / 0.8726 GB, free: 12.39 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004244/2.502, allocations: 0.5731 MB / 0.8732 GB, free: 11.81 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.502, allocations: 0 / 0.8732 GB, free: 11.81 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007677/2.503, allocations: 385.2 kB / 0.8736 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/2.503, allocations: 127.7 kB / 0.8737 GB, free: 11.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/2.503, allocations: 7.625 kB / 0.8737 GB, free: 11.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/2.504, allocations: 23.72 kB / 0.8737 GB, free: 11.35 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.766e-05/2.504, allocations: 27.53 kB / 0.8737 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/2.504, allocations: 7.984 kB / 0.8738 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002439/2.504, allocations: 227.8 kB / 0.874 GB, free: 11.13 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.7e-07/2.504, allocations: 64 / 0.874 GB, free: 11.13 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003767/2.508, allocations: 1.474 MB / 0.8754 GB, free: 9.758 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.007802/2.516, allocations: 3.035 MB / 0.8784 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007437/2.516, allocations: 356 kB / 0.8787 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/2.516, allocations: 0 / 0.8787 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000281/2.517, allocations: 116.4 kB / 0.8788 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/2.517, allocations: 75.39 kB / 0.8789 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006336/2.523, allocations: 4.002 MB / 0.8828 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/2.524, allocations: 0.7912 MB / 0.8836 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000204/2.524, allocations: 46.95 kB / 0.8836 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/2.524, allocations: 135.6 kB / 0.8838 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of SimCode: time 1.422e-06/2.524, allocations: 0 / 0.8838 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08884/2.613, allocations: 52.16 MB / 0.9347 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002419/2.613, allocations: 314.6 kB / 0.935 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.253/6.867, allocations: 0 / 0.935 GB, free: 13.82 MB / 0.7794 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)