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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8621/0.8621, allocations: 150.9 MB / 166 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003343, allocations: 15.98 kB / 204 MB, free: 10.15 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1978, allocations: 31.32 MB / 235.4 MB, free: 5.691 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 1.704/1.902, allocations: 293 MB / 0.5159 GB, free: 13.72 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1935/2.096, allocations: 188.8 MB / 0.7003 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002959/2.096, allocations: 11.94 kB / 0.7004 GB, free: 0.5078 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/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.0002409/2.096, allocations: 40.3 kB / 0.7004 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003402/2.097, allocations: 131 kB / 0.7005 GB, free: 348 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3896/2.486, allocations: 8.761 MB / 0.7091 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007178/2.487, allocations: 471.4 kB / 0.7095 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003882/2.488, allocations: 229.6 kB / 0.7097 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/2.488, allocations: 185 kB / 0.7099 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/2.488, allocations: 210.7 kB / 0.7101 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.697e-05/2.488, allocations: 26.97 kB / 0.7101 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03734/2.526, allocations: 19.92 MB / 0.7296 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003067/2.526, allocations: 83.36 kB / 0.7297 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003466/2.526, allocations: 215.3 kB / 0.7299 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02604/2.552, allocations: 9.947 MB / 0.7396 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/2.552, allocations: 1.625 kB / 0.7396 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.473e-06/2.552, allocations: 2.406 kB / 0.7396 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.355e-06/2.552, allocations: 0 / 0.7396 GB, free: 1.094 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.005304/2.558, allocations: 1.85 MB / 0.7414 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/2.558, allocations: 14.7 kB / 0.7414 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/2.558, allocations: 53.97 kB / 0.7415 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/2.558, allocations: 328.8 kB / 0.7418 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.176e-05/2.558, allocations: 61.16 kB / 0.7418 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/2.558, allocations: 39.81 kB / 0.7419 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006075/2.559, allocations: 406.6 kB / 0.7423 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/2.559, allocations: 3.406 kB / 0.7423 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/2.559, allocations: 20.84 kB / 0.7423 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/2.559, allocations: 11.09 kB / 0.7423 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005045/2.56, allocations: 282.3 kB / 0.7426 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/2.561, allocations: 2.023 MB / 0.7445 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005698/2.562, allocations: 219.9 kB / 0.7448 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/2.562, allocations: 84.41 kB / 0.7448 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2255/2.788, allocations: 122.5 MB / 0.8645 GB, free: 308 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003502/2.788, allocations: 142.5 kB / 0.8646 GB, free: 184 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 3.978e-06/2.788, allocations: 0 / 0.8646 GB, free: 184 kB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001124/2.789, allocations: 413.8 kB / 0.865 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/2.789, allocations: 55.16 kB / 0.8651 GB, free: 15.76 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/2.79, allocations: 319.6 kB / 0.8654 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/2.79, allocations: 25.7 kB / 0.8654 GB, free: 15.46 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/2.79, allocations: 248.7 kB / 0.8656 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.797e-05/2.79, allocations: 73.12 kB / 0.8657 GB, free: 15.21 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/2.79, allocations: 74.55 kB / 0.8658 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001004/2.79, allocations: 337.1 kB / 0.8661 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/2.79, allocations: 84.48 kB / 0.8662 GB, free: 14.77 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/2.79, allocations: 179.3 kB / 0.8664 GB, free: 14.59 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003978/2.791, allocations: 262.8 kB / 0.8666 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/2.791, allocations: 4 kB / 0.8666 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000859/2.792, allocations: 391 kB / 0.867 GB, free: 14.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/2.792, allocations: 9.094 kB / 0.867 GB, free: 14.06 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/2.792, allocations: 4 kB / 0.867 GB, free: 14.06 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/2.793, allocations: 163 kB / 0.8672 GB, free: 13.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/2.793, allocations: 54.59 kB / 0.8672 GB, free: 13.86 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/2.795, allocations: 2.202 MB / 0.8694 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/2.795, allocations: 54.72 kB / 0.8694 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/2.795, allocations: 12 kB / 0.8694 GB, free: 11.61 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.0001941/2.796, allocations: 155.2 kB / 0.8696 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.203e-05/2.796, allocations: 35.61 kB / 0.8696 GB, free: 11.45 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007212/2.796, allocations: 317.8 kB / 0.8699 GB, free: 11.19 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/2.797, allocations: 13.09 kB / 0.8699 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/2.797, allocations: 0 / 0.8699 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/2.797, allocations: 3.984 kB / 0.8699 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/2.797, allocations: 385.3 kB / 0.8703 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/2.797, allocations: 0 / 0.8703 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/2.797, allocations: 47.59 kB / 0.8703 GB, free: 10.79 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004958/2.798, allocations: 86.75 kB / 0.8704 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/2.798, allocations: 9.141 kB / 0.8704 GB, free: 10.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003951/2.798, allocations: 0.5573 MB / 0.871 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/2.798, allocations: 0 / 0.871 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007595/2.799, allocations: 384.3 kB / 0.8713 GB, free: 9.836 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/2.799, allocations: 123.6 kB / 0.8715 GB, free: 9.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.662e-05/2.799, allocations: 11.56 kB / 0.8715 GB, free: 9.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/2.799, allocations: 15.36 kB / 0.8715 GB, free: 9.684 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.362e-05/2.799, allocations: 26.86 kB / 0.8715 GB, free: 9.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/2.799, allocations: 19.61 kB / 0.8715 GB, free: 9.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002342/2.8, allocations: 228.9 kB / 0.8717 GB, free: 9.465 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.61e-07/2.8, allocations: 1.203 kB / 0.8717 GB, free: 9.465 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004281/2.804, allocations: 1.468 MB / 0.8732 GB, free: 8.102 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.008515/2.813, allocations: 2.277 MB / 0.8754 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009226/2.813, allocations: 353.7 kB / 0.8757 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/2.813, allocations: 5.516 kB / 0.8757 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003216/2.814, allocations: 109.3 kB / 0.8758 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/2.814, allocations: 70.14 kB / 0.8759 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/2.816, allocations: 0.9181 MB / 0.8768 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/2.817, allocations: 0.799 MB / 0.8776 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002528/2.817, allocations: 46.95 kB / 0.8776 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.791e-05/2.817, allocations: 31.06 kB / 0.8777 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of SimCode: time 7.72e-07/2.817, allocations: 0 / 0.8777 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of Templates: time 0.06249/2.879, allocations: 47.2 MB / 0.9238 GB, free: 4.887 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)