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.803/0.803, allocations: 150.9 MB / 166 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002983, allocations: 11.98 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1427, allocations: 31.33 MB / 235.4 MB, free: 5.453 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. 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.584/1.727, allocations: 293.7 MB / 0.5167 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1868/1.914, allocations: 188.4 MB / 0.7007 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002356/1.914, allocations: 7.938 kB / 0.7007 GB, free: 0.8438 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/CheckValve.mo:37:3-38:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/CheckValve.mo:39:3-40:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001236/1.914, allocations: 27.77 kB / 0.7008 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002754/1.914, allocations: 107.2 kB / 0.7009 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3016/2.216, allocations: 8.64 MB / 0.7093 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004949/2.216, allocations: 391.3 kB / 0.7097 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/2.217, allocations: 194.6 kB / 0.7099 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/2.217, allocations: 150.6 kB / 0.71 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/2.217, allocations: 172.2 kB / 0.7102 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.564e-05/2.217, allocations: 26.34 kB / 0.7102 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03013/2.247, allocations: 19.92 MB / 0.7296 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001598/2.247, allocations: 71.88 kB / 0.7297 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002932/2.248, allocations: 183.1 kB / 0.7299 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02085/2.269, allocations: 9.886 MB / 0.7395 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/2.269, allocations: 0 / 0.7395 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.573e-06/2.269, allocations: 0 / 0.7395 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.11e-05/2.269, allocations: 6.156 kB / 0.7395 GB, free: 1.617 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.004339/2.273, allocations: 1.786 MB / 0.7413 GB, free: 476 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/2.273, allocations: 10.78 kB / 0.7413 GB, free: 476 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.143e-05/2.273, allocations: 73.5 kB / 0.7414 GB, free: 428 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.872e-05/2.273, allocations: 48.5 kB / 0.7414 GB, free: 408 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/2.273, allocations: 298.6 kB / 0.7417 GB, free: 148 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.946e-05/2.273, allocations: 51.08 kB / 0.7417 GB, free: 116 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/2.274, allocations: 34.84 kB / 0.7418 GB, free: 116 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/2.274, allocations: 379.5 kB / 0.7421 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/2.274, allocations: 2.031 kB / 0.7421 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/2.274, allocations: 15.12 kB / 0.7422 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/2.274, allocations: 10.19 kB / 0.7422 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004731/2.275, allocations: 249.8 kB / 0.7424 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/2.276, allocations: 1.942 MB / 0.7443 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/2.277, allocations: 104.4 kB / 0.7444 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/2.277, allocations: 55.98 kB / 0.7445 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2354/2.512, allocations: 122.5 MB / 0.8641 GB, free: 1.402 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/2.512, allocations: 122.2 kB / 0.8642 GB, free: 1.293 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=16): time 2.284e-06/2.512, allocations: 2.906 kB / 0.8642 GB, free: 1.293 MB / 0.7012 GB Notification: Performance of matching and sorting (n=16): time 0.0009571/2.513, allocations: 345.1 kB / 0.8646 GB, free: 0.9766 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/2.513, allocations: 55.39 kB / 0.8646 GB, free: 0.9102 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003276/2.514, allocations: 267.9 kB / 0.8649 GB, free: 0.6875 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/2.514, allocations: 33.33 kB / 0.8649 GB, free: 0.6523 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/2.514, allocations: 226.8 kB / 0.8651 GB, free: 476 kB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/2.514, allocations: 49.91 kB / 0.8652 GB, free: 436 kB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.539e-05/2.514, allocations: 69.66 kB / 0.8652 GB, free: 384 kB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001218/2.514, allocations: 337.5 kB / 0.8655 GB, free: 48 kB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/2.514, allocations: 61.28 kB / 0.8656 GB, free: 4 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/2.515, allocations: 180.7 kB / 0.8658 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/2.516, allocations: 485.5 kB / 0.8662 GB, free: 15.37 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/2.516, allocations: 0 / 0.8662 GB, free: 15.37 MB / 0.7169 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006611/2.517, allocations: 313.3 kB / 0.8665 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/2.517, allocations: 13.97 kB / 0.8666 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/2.517, allocations: 4 kB / 0.8666 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000658/2.518, allocations: 91.75 kB / 0.8666 GB, free: 15.04 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/2.518, allocations: 49.42 kB / 0.8667 GB, free: 15 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004081/2.518, allocations: 0.5623 MB / 0.8672 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/2.519, allocations: 40.05 kB / 0.8673 GB, free: 14.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/2.519, allocations: 14.31 kB / 0.8673 GB, free: 14.39 MB / 0.7169 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.0002174/2.519, allocations: 167.2 kB / 0.8675 GB, free: 14.24 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/2.519, allocations: 27.78 kB / 0.8675 GB, free: 14.21 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000561/2.519, allocations: 234.3 kB / 0.8677 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/2.519, allocations: 1.203 kB / 0.8677 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/2.519, allocations: 4 kB / 0.8677 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/2.519, allocations: 0 / 0.8677 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/2.52, allocations: 332.7 kB / 0.868 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/2.52, allocations: 3.984 kB / 0.868 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/2.52, allocations: 12 kB / 0.868 GB, free: 13.69 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006123/2.52, allocations: 94.66 kB / 0.8681 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/2.52, allocations: 7.25 kB / 0.8681 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003564/2.521, allocations: 0.5499 MB / 0.8687 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/2.521, allocations: 1.203 kB / 0.8687 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004476/2.521, allocations: 239 kB / 0.8689 GB, free: 12.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/2.521, allocations: 108.3 kB / 0.869 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/2.521, allocations: 4 kB / 0.869 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/2.522, allocations: 11.36 kB / 0.869 GB, free: 12.69 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/2.522, allocations: 11.98 kB / 0.869 GB, free: 12.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/2.522, allocations: 7.625 kB / 0.869 GB, free: 12.68 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001978/2.522, allocations: 204.1 kB / 0.8692 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/2.522, allocations: 0 / 0.8692 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003959/2.526, allocations: 1.444 MB / 0.8706 GB, free: 11.17 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.008101/2.534, allocations: 2.934 MB / 0.8735 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006079/2.535, allocations: 183.6 kB / 0.8737 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/2.535, allocations: 0 / 0.8737 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002051/2.535, allocations: 72.3 kB / 0.8738 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/2.535, allocations: 67.78 kB / 0.8738 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005811/2.541, allocations: 3.314 MB / 0.8771 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/2.541, allocations: 0.7831 MB / 0.8778 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001712/2.542, allocations: 42.89 kB / 0.8779 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/2.542, allocations: 103.2 kB / 0.878 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/2.542, allocations: 4 kB / 0.878 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07769/2.619, allocations: 51.38 MB / 0.9281 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/2.62, allocations: 316.6 kB / 0.9284 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.304/6.924, allocations: 4 kB / 0.9284 GB, free: 0.8164 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)