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.9386/0.9386, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.956e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2178, allocations: 31.98 MB / 236.8 MB, free: 5.43 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.SimpleExamples.TestDynamicCheckValve): time 1.845/2.063, allocations: 293.9 MB / 0.5182 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2244/2.287, allocations: 186.6 MB / 0.7005 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000467/2.288, allocations: 7.938 kB / 0.7005 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002697/2.288, allocations: 35.7 kB / 0.7005 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006877/2.289, allocations: 135 kB / 0.7006 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4508/2.739, allocations: 8.947 MB / 0.7094 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009565/2.74, allocations: 473.5 kB / 0.7098 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004985/2.741, allocations: 200.5 kB / 0.71 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005099/2.741, allocations: 163.6 kB / 0.7102 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/2.742, allocations: 190.7 kB / 0.7104 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001011/2.742, allocations: 17 kB / 0.7104 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0477/2.79, allocations: 20 MB / 0.7299 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002745/2.79, allocations: 68.28 kB / 0.73 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005226/2.791, allocations: 225.4 kB / 0.7302 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03546/2.826, allocations: 9.84 MB / 0.7398 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/2.826, allocations: 0 / 0.7398 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of FrontEnd: time 4.248e-06/2.826, allocations: 0 / 0.7398 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.853e-05/2.826, allocations: 0 / 0.7398 GB, free: 2.082 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.00782/2.834, allocations: 1.781 MB / 0.7415 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/2.834, allocations: 8.25 kB / 0.7415 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/2.834, allocations: 56.38 kB / 0.7416 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000644/2.835, allocations: 330.3 kB / 0.7419 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.45e-05/2.835, allocations: 54.42 kB / 0.742 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/2.835, allocations: 38.47 kB / 0.742 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008345/2.836, allocations: 416.7 kB / 0.7424 GB, free: 436 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/2.836, allocations: 3.906 kB / 0.7424 GB, free: 432 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/2.836, allocations: 21.16 kB / 0.7424 GB, free: 428 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/2.836, allocations: 8.25 kB / 0.7424 GB, free: 428 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005798/2.837, allocations: 289.6 kB / 0.7427 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/2.839, allocations: 2.02 MB / 0.7447 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000653/2.84, allocations: 253.1 kB / 0.7449 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/2.84, allocations: 80.05 kB / 0.745 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2588/3.099, allocations: 123.5 MB / 0.8656 GB, free: 2.219 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003894/3.099, allocations: 142.8 kB / 0.8658 GB, free: 2.098 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 2.304e-06/3.099, allocations: 0 / 0.8658 GB, free: 2.098 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001165/3.101, allocations: 418.1 kB / 0.8662 GB, free: 1.734 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/3.101, allocations: 51.41 kB / 0.8662 GB, free: 1.672 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004412/3.101, allocations: 322.9 kB / 0.8665 GB, free: 1.41 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/3.101, allocations: 25.7 kB / 0.8665 GB, free: 1.379 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/3.101, allocations: 249 kB / 0.8668 GB, free: 1.188 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 8.094e-05/3.101, allocations: 76.48 kB / 0.8669 GB, free: 1.125 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-05/3.101, allocations: 36.77 kB / 0.8669 GB, free: 1.094 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001735/3.102, allocations: 341.5 kB / 0.8672 GB, free: 0.7656 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/3.102, allocations: 78.75 kB / 0.8673 GB, free: 0.7109 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/3.102, allocations: 183.3 kB / 0.8675 GB, free: 0.5195 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/3.103, allocations: 276.2 kB / 0.8677 GB, free: 292 kB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/3.103, allocations: 0 / 0.8677 GB, free: 292 kB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009822/3.104, allocations: 386.3 kB / 0.8681 GB, free: 15.99 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/3.104, allocations: 8 kB / 0.8681 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/3.104, allocations: 4 kB / 0.8681 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/3.105, allocations: 209.5 kB / 0.8683 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/3.105, allocations: 50.58 kB / 0.8684 GB, free: 15.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/3.108, allocations: 2.207 MB / 0.8705 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/3.108, allocations: 51.33 kB / 0.8706 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.116e-05/3.108, allocations: 23.48 kB / 0.8706 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.0002397/3.108, allocations: 157.8 kB / 0.8707 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/3.108, allocations: 27.62 kB / 0.8708 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000756/3.109, allocations: 326 kB / 0.8711 GB, free: 13.06 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/3.109, allocations: 4 kB / 0.8711 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/3.109, allocations: 96 / 0.8711 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/3.109, allocations: 3.984 kB / 0.8711 GB, free: 13.05 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000491/3.11, allocations: 387.9 kB / 0.8714 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/3.11, allocations: 0 / 0.8714 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/3.11, allocations: 54.45 kB / 0.8715 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005359/3.11, allocations: 92.44 kB / 0.8716 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/3.11, allocations: 15.48 kB / 0.8716 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004791/3.111, allocations: 0.565 MB / 0.8722 GB, free: 11.99 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/3.111, allocations: 4.031 kB / 0.8722 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008365/3.112, allocations: 381 kB / 0.8725 GB, free: 11.68 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/3.112, allocations: 120.1 kB / 0.8726 GB, free: 11.55 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/3.112, allocations: 3.562 kB / 0.8726 GB, free: 11.55 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/3.112, allocations: 27.86 kB / 0.8727 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.82e-05/3.112, allocations: 27.8 kB / 0.8727 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.65e-05/3.112, allocations: 15.48 kB / 0.8727 GB, free: 11.49 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000258/3.113, allocations: 227.9 kB / 0.8729 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.31e-07/3.113, allocations: 0 / 0.8729 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004955/3.118, allocations: 1.471 MB / 0.8744 GB, free: 9.941 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.009247/3.127, allocations: 2.251 MB / 0.8766 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001003/3.128, allocations: 363.5 kB / 0.8769 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/3.128, allocations: 3.844 kB / 0.8769 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002946/3.128, allocations: 112.5 kB / 0.877 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/3.129, allocations: 68.27 kB / 0.8771 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/3.131, allocations: 0.9749 MB / 0.878 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/3.131, allocations: 0.8029 MB / 0.8788 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000226/3.131, allocations: 50.52 kB / 0.8789 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.074e-05/3.131, allocations: 27.44 kB / 0.8789 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of SimCode: time 1.282e-06/3.131, allocations: 0 / 0.8789 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of Templates: time 0.07293/3.204, allocations: 46.58 MB / 0.9244 GB, free: 7.285 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: