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: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8996/0.8996, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.235e-05/2.247e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1958, allocations: 31.98 MB / 236.8 MB, free: 5.445 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.TestDynamicCheckValve): time 1.69/1.886, allocations: 293.8 MB / 0.5182 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2182/2.104, allocations: 186.6 MB / 0.7004 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004537/2.105, allocations: 7.938 kB / 0.7004 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002638/2.105, allocations: 35.7 kB / 0.7004 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006599/2.106, allocations: 135 kB / 0.7006 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4033/2.509, allocations: 8.954 MB / 0.7093 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006974/2.51, allocations: 470.9 kB / 0.7098 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003218/2.51, allocations: 198.2 kB / 0.71 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/2.511, allocations: 165.2 kB / 0.7101 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002595/2.511, allocations: 191.8 kB / 0.7103 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/2.511, allocations: 16.62 kB / 0.7103 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03586/2.547, allocations: 20 MB / 0.7298 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002233/2.547, allocations: 71.36 kB / 0.7299 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004227/2.547, allocations: 223.3 kB / 0.7301 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02565/2.573, allocations: 9.833 MB / 0.7397 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/2.573, allocations: 2.906 kB / 0.7397 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.847e-06/2.573, allocations: 2.562 kB / 0.7397 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.164e-05/2.573, allocations: 1.969 kB / 0.7397 GB, free: 2.035 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.00531/2.579, allocations: 1.776 MB / 0.7415 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/2.579, allocations: 9.188 kB / 0.7415 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/2.579, allocations: 53.56 kB / 0.7415 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/2.579, allocations: 335.2 kB / 0.7418 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.334e-05/2.579, allocations: 59.38 kB / 0.7419 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.432e-05/2.579, allocations: 40.69 kB / 0.7419 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006663/2.58, allocations: 405.2 kB / 0.7423 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/2.58, allocations: 6.844 kB / 0.7423 GB, free: 380 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.98e-05/2.58, allocations: 18.28 kB / 0.7424 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/2.58, allocations: 8.312 kB / 0.7424 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000524/2.581, allocations: 289.5 kB / 0.7426 GB, free: 332 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/2.583, allocations: 2.024 MB / 0.7446 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006082/2.583, allocations: 250.2 kB / 0.7449 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/2.584, allocations: 89.66 kB / 0.7449 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2461/2.83, allocations: 123.5 MB / 0.8656 GB, free: 2.211 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003194/2.83, allocations: 137.8 kB / 0.8657 GB, free: 2.094 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 2.624e-06/2.83, allocations: 4 kB / 0.8657 GB, free: 2.09 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001046/2.831, allocations: 410.3 kB / 0.8661 GB, free: 1.73 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/2.831, allocations: 58.14 kB / 0.8661 GB, free: 1.664 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003814/2.832, allocations: 315.3 kB / 0.8664 GB, free: 1.406 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/2.832, allocations: 29.39 kB / 0.8665 GB, free: 1.375 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/2.832, allocations: 249.8 kB / 0.8667 GB, free: 1.18 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/2.832, allocations: 70.08 kB / 0.8668 GB, free: 1.121 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/2.832, allocations: 36.77 kB / 0.8668 GB, free: 1.09 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001208/2.832, allocations: 349.5 kB / 0.8671 GB, free: 0.7539 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/2.832, allocations: 74.73 kB / 0.8672 GB, free: 0.7031 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002253/2.832, allocations: 183.3 kB / 0.8674 GB, free: 0.5117 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/2.833, allocations: 273.7 kB / 0.8677 GB, free: 284 kB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/2.833, allocations: 0 / 0.8677 GB, free: 284 kB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000867/2.834, allocations: 393.4 kB / 0.868 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/2.834, allocations: 4 kB / 0.868 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/2.834, allocations: 4 kB / 0.868 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/2.835, allocations: 202.3 kB / 0.8682 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/2.835, allocations: 58.5 kB / 0.8683 GB, free: 15.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/2.837, allocations: 2.207 MB / 0.8704 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/2.838, allocations: 59.38 kB / 0.8705 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/2.838, allocations: 15.5 kB / 0.8705 GB, free: 13.48 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.0001822/2.838, allocations: 160 kB / 0.8707 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/2.838, allocations: 35.61 kB / 0.8707 GB, free: 13.3 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007328/2.839, allocations: 322.5 kB / 0.871 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/2.839, allocations: 0 / 0.871 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/2.839, allocations: 1.859 kB / 0.871 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/2.839, allocations: 3.984 kB / 0.871 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003957/2.839, allocations: 382.5 kB / 0.8714 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/2.839, allocations: 8 kB / 0.8714 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/2.839, allocations: 50.38 kB / 0.8714 GB, free: 12.65 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005206/2.84, allocations: 96.58 kB / 0.8715 GB, free: 12.56 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/2.84, allocations: 7.438 kB / 0.8715 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004228/2.84, allocations: 0.5689 MB / 0.8721 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/2.84, allocations: 0 / 0.8721 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007493/2.841, allocations: 385 kB / 0.8725 GB, free: 11.68 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/2.841, allocations: 120.1 kB / 0.8726 GB, free: 11.55 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/2.841, allocations: 11.73 kB / 0.8726 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/2.842, allocations: 20.05 kB / 0.8726 GB, free: 11.52 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.562e-05/2.842, allocations: 33.17 kB / 0.8726 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.742e-05/2.842, allocations: 11.69 kB / 0.8726 GB, free: 11.49 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002436/2.842, allocations: 231.7 kB / 0.8729 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.313e-06/2.842, allocations: 0 / 0.8729 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004107/2.846, allocations: 1.473 MB / 0.8743 GB, free: 9.93 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.007947/2.854, allocations: 2.246 MB / 0.8765 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008709/2.855, allocations: 353.6 kB / 0.8768 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/2.855, allocations: 3.844 kB / 0.8768 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002789/2.855, allocations: 116.5 kB / 0.8769 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/2.856, allocations: 68.27 kB / 0.877 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/2.857, allocations: 0.9731 MB / 0.878 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/2.858, allocations: 0.799 MB / 0.8787 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000203/2.858, allocations: 46.53 kB / 0.8788 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.238e-05/2.858, allocations: 34.33 kB / 0.8788 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of SimCode: time 1.052e-06/2.858, allocations: 0 / 0.8788 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of Templates: time 0.06749/2.925, allocations: 46.58 MB / 0.9243 GB, free: 7.297 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile Environment - environmentSimulation: (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) Environment - environmentSimulation: