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.8577/0.8577, allocations: 150.9 MB / 166 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003176, allocations: 19.95 kB / 204.1 MB, free: 9.902 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2235, allocations: 31.32 MB / 235.4 MB, free: 5.473 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.SimpleExamples.TestDynamicCheckValve): time 2.051/2.275, allocations: 293.9 MB / 0.517 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.267/2.542, allocations: 188.8 MB / 0.7014 GB, free: 212 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000818/2.543, allocations: 11.94 kB / 0.7014 GB, free: 200 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.000405/2.543, allocations: 43.62 kB / 0.7014 GB, free: 156 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.549/3.092, allocations: 133.2 kB / 0.7015 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03854/3.131, allocations: 8.768 MB / 0.7101 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001169/3.132, allocations: 472.6 kB / 0.7106 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004144/3.133, allocations: 226.3 kB / 0.7108 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/3.133, allocations: 183.2 kB / 0.7109 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/3.133, allocations: 216 kB / 0.7112 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/3.133, allocations: 27.91 kB / 0.7112 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04716/3.18, allocations: 19.92 MB / 0.7306 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003173/3.181, allocations: 87.17 kB / 0.7307 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004593/3.181, allocations: 213.4 kB / 0.7309 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0345/3.216, allocations: 9.947 MB / 0.7406 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/3.216, allocations: 0 / 0.7406 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.104e-06/3.216, allocations: 0 / 0.7406 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.618e-06/3.216, allocations: 2.531 kB / 0.7406 GB, free: 0.8164 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.007394/3.223, allocations: 1.857 MB / 0.7424 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/3.223, allocations: 10.19 kB / 0.7425 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.882e-05/3.223, allocations: 84.75 kB / 0.7425 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/3.224, allocations: 50.47 kB / 0.7426 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/3.224, allocations: 322.5 kB / 0.7429 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.926e-05/3.224, allocations: 56.92 kB / 0.7429 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/3.224, allocations: 37.66 kB / 0.743 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/3.225, allocations: 414.1 kB / 0.7434 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/3.225, allocations: 3.938 kB / 0.7434 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/3.225, allocations: 13.72 kB / 0.7434 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/3.225, allocations: 10.44 kB / 0.7434 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000511/3.225, allocations: 284.8 kB / 0.7437 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/3.227, allocations: 2.022 MB / 0.7456 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005775/3.228, allocations: 227.3 kB / 0.7459 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/3.228, allocations: 81.98 kB / 0.7459 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2265/3.454, allocations: 122.5 MB / 0.8656 GB, free: 15.9 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003878/3.455, allocations: 150.7 kB / 0.8657 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 3.788e-06/3.455, allocations: 0 / 0.8657 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.00115/3.456, allocations: 404.8 kB / 0.8661 GB, free: 15.42 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/3.456, allocations: 55.41 kB / 0.8662 GB, free: 15.35 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/3.457, allocations: 319.5 kB / 0.8665 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/3.457, allocations: 34.3 kB / 0.8665 GB, free: 15.05 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/3.457, allocations: 246.8 kB / 0.8667 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.79e-05/3.457, allocations: 69.45 kB / 0.8668 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/3.457, allocations: 73.86 kB / 0.8669 GB, free: 14.75 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001502/3.457, allocations: 344.2 kB / 0.8672 GB, free: 14.42 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/3.457, allocations: 78.36 kB / 0.8673 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/3.458, allocations: 181.2 kB / 0.8675 GB, free: 14.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003832/3.458, allocations: 271.6 kB / 0.8677 GB, free: 13.95 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/3.458, allocations: 5.203 kB / 0.8677 GB, free: 13.95 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007887/3.459, allocations: 386 kB / 0.8681 GB, free: 13.66 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/3.459, allocations: 8 kB / 0.8681 GB, free: 13.65 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/3.459, allocations: 4.422 kB / 0.8681 GB, free: 13.65 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000992/3.46, allocations: 163.2 kB / 0.8683 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/3.46, allocations: 53.88 kB / 0.8683 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/3.462, allocations: 2.197 MB / 0.8705 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/3.462, allocations: 43.58 kB / 0.8705 GB, free: 11.22 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-05/3.462, allocations: 23.11 kB / 0.8705 GB, free: 11.2 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.000177/3.462, allocations: 163.4 kB / 0.8707 GB, free: 11.06 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/3.462, allocations: 27.62 kB / 0.8707 GB, free: 11.03 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006917/3.463, allocations: 322.9 kB / 0.871 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/3.463, allocations: 4 kB / 0.871 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-06/3.463, allocations: 0 / 0.871 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/3.463, allocations: 0 / 0.871 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003461/3.464, allocations: 384.6 kB / 0.8714 GB, free: 10.42 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/3.464, allocations: 4 kB / 0.8714 GB, free: 10.42 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/3.464, allocations: 43.42 kB / 0.8714 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004672/3.464, allocations: 83.17 kB / 0.8715 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/3.464, allocations: 4.531 kB / 0.8715 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003941/3.465, allocations: 0.569 MB / 0.8721 GB, free: 9.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/3.465, allocations: 0 / 0.8721 GB, free: 9.727 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007283/3.465, allocations: 383.6 kB / 0.8724 GB, free: 9.426 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/3.466, allocations: 133.5 kB / 0.8726 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/3.466, allocations: 7.859 kB / 0.8726 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/3.466, allocations: 11.98 kB / 0.8726 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.414e-05/3.466, allocations: 31.02 kB / 0.8726 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/3.466, allocations: 7.875 kB / 0.8726 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002215/3.466, allocations: 237.9 kB / 0.8728 GB, free: 9.055 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/3.466, allocations: 0 / 0.8728 GB, free: 9.055 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004991/3.471, allocations: 1.476 MB / 0.8743 GB, free: 7.688 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.006887/3.478, allocations: 3.054 MB / 0.8773 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007364/3.479, allocations: 358.5 kB / 0.8776 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/3.479, allocations: 0 / 0.8776 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002617/3.479, allocations: 110 kB / 0.8777 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/3.48, allocations: 82.08 kB / 0.8778 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005794/3.485, allocations: 3.922 MB / 0.8816 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/3.486, allocations: 0.799 MB / 0.8824 GB, free: 164 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002085/3.486, allocations: 52.7 kB / 0.8825 GB, free: 116 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001707/3.486, allocations: 133.6 kB / 0.8826 GB, free: 76 kB / 0.7169 GB Notification: Performance of SimCode: time 5.61e-07/3.486, allocations: 0 / 0.8826 GB, free: 76 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09584/3.582, allocations: 53.26 MB / 0.9346 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/3.582, allocations: 291.9 kB / 0.9349 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.403/7.985, allocations: 12 kB / 0.9349 GB, free: 10.65 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)