Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_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.8762/0.8762, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.494e-05/1.484e-05, allocations: 4 kB / 204.9 MB, free: 9.945 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1525, allocations: 31.98 MB / 236.9 MB, free: 5.18 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.TestCheckValve): time 1.515/1.668, allocations: 294.6 MB / 0.519 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1902/1.858, allocations: 186.2 MB / 0.7008 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/1.858, allocations: 11.94 kB / 0.7009 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 7.412e-05/1.858, allocations: 31.77 kB / 0.7009 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002842/1.859, allocations: 99.16 kB / 0.701 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3019/2.161, allocations: 8.825 MB / 0.7096 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005026/2.161, allocations: 391.5 kB / 0.71 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002493/2.161, allocations: 171.9 kB / 0.7101 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/2.162, allocations: 127.1 kB / 0.7103 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/2.162, allocations: 148.8 kB / 0.7104 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/2.162, allocations: 18.47 kB / 0.7104 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0303/2.192, allocations: 20 MB / 0.7299 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/2.192, allocations: 58.66 kB / 0.73 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002412/2.193, allocations: 190 kB / 0.7302 GB, free: 5.117 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02087/2.213, allocations: 9.778 MB / 0.7397 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/2.213, allocations: 0 / 0.7397 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.405e-06/2.213, allocations: 0 / 0.7397 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.753e-06/2.213, allocations: 0 / 0.7397 GB, free: 2.543 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004311/2.218, allocations: 1.726 MB / 0.7414 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/2.218, allocations: 8.625 kB / 0.7414 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.656e-05/2.218, allocations: 72.34 kB / 0.7415 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.829e-05/2.218, allocations: 43.22 kB / 0.7415 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/2.218, allocations: 296.8 kB / 0.7418 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.115e-05/2.218, allocations: 55.2 kB / 0.7419 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/2.218, allocations: 34.5 kB / 0.7419 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005266/2.219, allocations: 390 kB / 0.7423 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/2.219, allocations: 0 / 0.7423 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.864e-05/2.219, allocations: 18.66 kB / 0.7423 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/2.219, allocations: 7.094 kB / 0.7423 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/2.219, allocations: 264.1 kB / 0.7426 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/2.221, allocations: 1.95 MB / 0.7445 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/2.221, allocations: 116 kB / 0.7446 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/2.221, allocations: 56.05 kB / 0.7446 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2497/2.471, allocations: 123.5 MB / 0.8652 GB, free: 3.254 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000296/2.471, allocations: 121.5 kB / 0.8654 GB, free: 3.145 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=16): time 3.056e-06/2.471, allocations: 2.734 kB / 0.8654 GB, free: 3.145 MB / 0.7012 GB Notification: Performance of matching and sorting (n=16): time 0.0009487/2.472, allocations: 363.3 kB / 0.8657 GB, free: 2.812 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/2.472, allocations: 51.41 kB / 0.8658 GB, free: 2.75 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/2.473, allocations: 266.5 kB / 0.866 GB, free: 2.531 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/2.473, allocations: 33.39 kB / 0.866 GB, free: 2.496 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000156/2.473, allocations: 220.8 kB / 0.8663 GB, free: 2.309 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/2.473, allocations: 49.66 kB / 0.8663 GB, free: 2.27 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.172e-05/2.473, allocations: 43.8 kB / 0.8663 GB, free: 2.234 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001121/2.473, allocations: 333.8 kB / 0.8667 GB, free: 1.91 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/2.473, allocations: 70.45 kB / 0.8667 GB, free: 1.859 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002361/2.473, allocations: 183.9 kB / 0.8669 GB, free: 1.652 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/2.475, allocations: 0.5037 MB / 0.8674 GB, free: 1.191 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/2.475, allocations: 7.562 kB / 0.8674 GB, free: 1.188 MB / 0.7012 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000685/2.476, allocations: 328.3 kB / 0.8677 GB, free: 0.9414 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/2.476, allocations: 13.34 kB / 0.8677 GB, free: 0.9297 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/2.476, allocations: 4 kB / 0.8677 GB, free: 0.9258 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000642/2.476, allocations: 119.1 kB / 0.8679 GB, free: 0.8164 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/2.477, allocations: 46.88 kB / 0.8679 GB, free: 0.7734 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004034/2.477, allocations: 0.5576 MB / 0.8684 GB, free: 216 kB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/2.477, allocations: 46.95 kB / 0.8685 GB, free: 176 kB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/2.477, allocations: 18.89 kB / 0.8685 GB, free: 160 kB / 0.7012 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: 18 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,checkValve3.fluid,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001877/2.477, allocations: 158.7 kB / 0.8687 GB, free: 20 kB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.786e-05/2.478, allocations: 26.62 kB / 0.8687 GB, free: 15.99 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005391/2.478, allocations: 248.4 kB / 0.8689 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/2.478, allocations: 4 kB / 0.8689 GB, free: 15.78 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/2.478, allocations: 0 / 0.8689 GB, free: 15.78 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/2.478, allocations: 0 / 0.8689 GB, free: 15.78 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003509/2.478, allocations: 338.5 kB / 0.8692 GB, free: 15.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/2.479, allocations: 0 / 0.8692 GB, free: 15.46 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.095e-05/2.479, allocations: 22.89 kB / 0.8693 GB, free: 15.45 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006032/2.479, allocations: 116 kB / 0.8694 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/2.479, allocations: 0 / 0.8694 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003613/2.48, allocations: 0.5536 MB / 0.8699 GB, free: 14.78 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/2.48, allocations: 0 / 0.8699 GB, free: 14.78 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004432/2.48, allocations: 238.7 kB / 0.8701 GB, free: 14.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.79e-05/2.48, allocations: 108.6 kB / 0.8702 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/2.48, allocations: 3.688 kB / 0.8703 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/2.48, allocations: 15.98 kB / 0.8703 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/2.48, allocations: 19.66 kB / 0.8703 GB, free: 14.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/2.48, allocations: 4 kB / 0.8703 GB, free: 14.41 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002003/2.481, allocations: 195.1 kB / 0.8705 GB, free: 14.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.91e-07/2.481, allocations: 0 / 0.8705 GB, free: 14.25 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003622/2.484, allocations: 1.448 MB / 0.8719 GB, free: 12.89 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007751/2.492, allocations: 2.92 MB / 0.8747 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005102/2.493, allocations: 190.4 kB / 0.8749 GB, free: 10.17 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/2.493, allocations: 4.062 kB / 0.8749 GB, free: 10.17 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002018/2.493, allocations: 74.89 kB / 0.875 GB, free: 10.11 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/2.493, allocations: 68.48 kB / 0.8751 GB, free: 10.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005665/2.499, allocations: 3.34 MB / 0.8783 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/2.499, allocations: 0.7713 MB / 0.8791 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001884/2.499, allocations: 42.91 kB / 0.8791 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/2.5, allocations: 109 kB / 0.8792 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/2.5, allocations: 0 / 0.8792 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07652/2.576, allocations: 50.27 MB / 0.9283 GB, free: 4.012 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/2.576, allocations: 309.1 kB / 0.9286 GB, free: 3.629 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.124/6.7, allocations: 0 / 0.9286 GB, free: 3.629 MB / 0.7637 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)