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.8017/0.8017, allocations: 150.9 MB / 166 MB, free: 14.69 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003011, allocations: 19.97 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1373, allocations: 31.33 MB / 235.4 MB, free: 5.426 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.TestDynamicCheckValve): time 1.585/1.723, allocations: 293.9 MB / 0.5169 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.187/1.91, allocations: 188.8 MB / 0.7013 GB, free: 200 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/1.91, allocations: 15.94 kB / 0.7013 GB, free: 184 kB / 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/DynamicCheckValve.mo:56:3-57:67: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/DynamicCheckValve.mo:58:3-59:65: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.0001934/1.91, allocations: 35.77 kB / 0.7013 GB, free: 148 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.2734/2.183, allocations: 125.3 kB / 0.7015 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02416/2.208, allocations: 8.771 MB / 0.71 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007096/2.208, allocations: 476.3 kB / 0.7105 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003701/2.209, allocations: 222.8 kB / 0.7107 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003779/2.209, allocations: 185.7 kB / 0.7109 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003791/2.209, allocations: 221.2 kB / 0.7111 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.349e-05/2.21, allocations: 28.44 kB / 0.7111 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03357/2.243, allocations: 19.91 MB / 0.7306 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000208/2.243, allocations: 85.28 kB / 0.7306 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00034/2.244, allocations: 210 kB / 0.7308 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02093/2.265, allocations: 9.951 MB / 0.7406 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/2.265, allocations: 0 / 0.7406 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.286e-06/2.265, allocations: 0 / 0.7406 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.859e-05/2.265, allocations: 2.625 kB / 0.7406 GB, free: 0.832 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.007141/2.272, allocations: 1.861 MB / 0.7424 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.778e-05/2.272, allocations: 7.875 kB / 0.7424 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001528/2.272, allocations: 81.2 kB / 0.7425 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/2.272, allocations: 50.12 kB / 0.7425 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/2.273, allocations: 327.7 kB / 0.7428 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.623e-05/2.273, allocations: 59.42 kB / 0.7429 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/2.273, allocations: 36.75 kB / 0.7429 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007984/2.274, allocations: 409.6 kB / 0.7433 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/2.274, allocations: 6.438 kB / 0.7433 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/2.274, allocations: 16.34 kB / 0.7433 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/2.274, allocations: 14.86 kB / 0.7433 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005639/2.275, allocations: 279.9 kB / 0.7436 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/2.277, allocations: 2.019 MB / 0.7456 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/2.277, allocations: 225.5 kB / 0.7458 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/2.278, allocations: 82.89 kB / 0.7459 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2335/2.511, allocations: 122.5 MB / 0.8655 GB, free: 15.94 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000329/2.511, allocations: 147.4 kB / 0.8657 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 2.394e-06/2.511, allocations: 0 / 0.8657 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001069/2.512, allocations: 411.2 kB / 0.8661 GB, free: 15.46 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/2.513, allocations: 55.41 kB / 0.8661 GB, free: 15.39 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003653/2.513, allocations: 315.9 kB / 0.8664 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/2.513, allocations: 32.83 kB / 0.8665 GB, free: 15.1 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/2.513, allocations: 245.9 kB / 0.8667 GB, free: 14.9 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/2.513, allocations: 71.41 kB / 0.8668 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/2.513, allocations: 74.17 kB / 0.8668 GB, free: 14.79 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001178/2.513, allocations: 339.5 kB / 0.8672 GB, free: 14.46 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/2.514, allocations: 82.98 kB / 0.8672 GB, free: 14.41 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/2.514, allocations: 181 kB / 0.8674 GB, free: 14.22 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/2.514, allocations: 267.3 kB / 0.8677 GB, free: 13.99 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/2.514, allocations: 4 kB / 0.8677 GB, free: 13.99 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008443/2.515, allocations: 383.8 kB / 0.868 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/2.515, allocations: 8.031 kB / 0.868 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/2.515, allocations: 9.203 kB / 0.868 GB, free: 13.69 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/2.516, allocations: 162.7 kB / 0.8682 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/2.516, allocations: 53.88 kB / 0.8682 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/2.519, allocations: 2.202 MB / 0.8704 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/2.519, allocations: 43.41 kB / 0.8704 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/2.519, allocations: 19.31 kB / 0.8705 GB, free: 11.24 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.000167/2.519, allocations: 161.4 kB / 0.8706 GB, free: 11.1 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.733e-05/2.519, allocations: 31.62 kB / 0.8706 GB, free: 11.07 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007385/2.52, allocations: 316.8 kB / 0.8709 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/2.52, allocations: 2.25 kB / 0.8709 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/2.52, allocations: 0 / 0.8709 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/2.52, allocations: 9.078 kB / 0.871 GB, free: 10.81 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003887/2.52, allocations: 381.1 kB / 0.8713 GB, free: 10.47 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/2.52, allocations: 4 kB / 0.8713 GB, free: 10.46 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/2.521, allocations: 46 kB / 0.8714 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005325/2.521, allocations: 84.45 kB / 0.8714 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/2.521, allocations: 7.188 kB / 0.8715 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004143/2.522, allocations: 0.5641 MB / 0.872 GB, free: 9.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/2.522, allocations: 1.25 kB / 0.872 GB, free: 9.773 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007783/2.522, allocations: 384.3 kB / 0.8724 GB, free: 9.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/2.523, allocations: 130.9 kB / 0.8725 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/2.523, allocations: 3.688 kB / 0.8725 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/2.523, allocations: 15.97 kB / 0.8725 GB, free: 9.316 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/2.523, allocations: 27.16 kB / 0.8725 GB, free: 9.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.613e-05/2.523, allocations: 15.73 kB / 0.8726 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002391/2.523, allocations: 233.1 kB / 0.8728 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.51e-07/2.523, allocations: 0 / 0.8728 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003803/2.527, allocations: 1.468 MB / 0.8742 GB, free: 7.73 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.008277/2.535, allocations: 3.071 MB / 0.8772 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007809/2.536, allocations: 351.1 kB / 0.8775 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/2.536, allocations: 1.203 kB / 0.8775 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002817/2.536, allocations: 110.1 kB / 0.8777 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/2.537, allocations: 79.77 kB / 0.8777 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006874/2.544, allocations: 3.922 MB / 0.8816 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/2.544, allocations: 0.8028 MB / 0.8823 GB, free: 208 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002178/2.544, allocations: 50.89 kB / 0.8824 GB, free: 160 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/2.545, allocations: 132.8 kB / 0.8825 GB, free: 120 kB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/2.545, allocations: 1.203 kB / 0.8825 GB, free: 120 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07963/2.624, allocations: 53.27 MB / 0.9345 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/2.624, allocations: 318.4 kB / 0.9349 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.273/6.897, allocations: 0 / 0.9349 GB, free: 10.73 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)