Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.896/0.896, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.997e-05/2.011e-05, allocations: 3.984 kB / 204.8 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2025/0.2025, allocations: 31.98 MB / 236.8 MB, free: 5.426 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.TestCheckValve): time 1.798/2.001, allocations: 293.7 MB / 0.518 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1978/2.199, allocations: 186.2 MB / 0.6998 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003023/2.199, allocations: 7.938 kB / 0.6998 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 7.802e-05/2.199, allocations: 27.78 kB / 0.6999 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003216/2.2, allocations: 99.16 kB / 0.7 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4284/2.628, allocations: 8.825 MB / 0.7086 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001021/2.629, allocations: 392.8 kB / 0.7089 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004632/2.629, allocations: 178.6 kB / 0.7091 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/2.63, allocations: 126.2 kB / 0.7092 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002595/2.63, allocations: 151.3 kB / 0.7094 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.241e-05/2.63, allocations: 14.38 kB / 0.7094 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04139/2.671, allocations: 20 MB / 0.7289 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002124/2.672, allocations: 58.94 kB / 0.729 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003773/2.672, allocations: 188.4 kB / 0.7292 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03211/2.704, allocations: 9.782 MB / 0.7387 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/2.704, allocations: 0 / 0.7387 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.577e-06/2.704, allocations: 0 / 0.7387 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.273e-05/2.704, allocations: 0 / 0.7387 GB, free: 2.715 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.006428/2.711, allocations: 1.722 MB / 0.7404 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/2.711, allocations: 8.625 kB / 0.7404 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/2.711, allocations: 42.25 kB / 0.7404 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/2.711, allocations: 298.6 kB / 0.7407 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.34e-05/2.711, allocations: 52.98 kB / 0.7408 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.791e-05/2.711, allocations: 35.53 kB / 0.7408 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007022/2.712, allocations: 388.8 kB / 0.7412 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/2.712, allocations: 0 / 0.7412 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/2.712, allocations: 16.44 kB / 0.7412 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/2.712, allocations: 8 kB / 0.7412 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005384/2.713, allocations: 260.3 kB / 0.7415 GB, free: 1.074 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/2.715, allocations: 1.948 MB / 0.7434 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/2.715, allocations: 111.2 kB / 0.7435 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/2.715, allocations: 60.48 kB / 0.7435 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2585/2.974, allocations: 123.5 MB / 0.8642 GB, free: 3.516 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003543/2.974, allocations: 125.5 kB / 0.8643 GB, free: 3.402 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=16): time 2.625e-06/2.974, allocations: 0 / 0.8643 GB, free: 3.402 MB / 0.7012 GB Notification: Performance of matching and sorting (n=16): time 0.001028/2.975, allocations: 360 kB / 0.8646 GB, free: 3.07 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/2.975, allocations: 57.25 kB / 0.8647 GB, free: 3.004 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003722/2.976, allocations: 262.6 kB / 0.8649 GB, free: 2.789 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/2.976, allocations: 29.39 kB / 0.865 GB, free: 2.758 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/2.976, allocations: 227.9 kB / 0.8652 GB, free: 2.566 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 6.276e-05/2.976, allocations: 46.52 kB / 0.8652 GB, free: 2.531 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.958e-05/2.976, allocations: 36.77 kB / 0.8652 GB, free: 2.5 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001351/2.976, allocations: 334.2 kB / 0.8656 GB, free: 2.172 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/2.976, allocations: 70.52 kB / 0.8656 GB, free: 2.121 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/2.977, allocations: 190.8 kB / 0.8658 GB, free: 1.91 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/2.978, allocations: 0.5049 MB / 0.8663 GB, free: 1.453 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/2.978, allocations: 11.47 kB / 0.8663 GB, free: 1.445 MB / 0.7012 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006847/2.979, allocations: 325.2 kB / 0.8666 GB, free: 1.203 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/2.979, allocations: 9.562 kB / 0.8666 GB, free: 1.195 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/2.979, allocations: 7.938 kB / 0.8666 GB, free: 1.188 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000657/2.98, allocations: 122.1 kB / 0.8668 GB, free: 1.074 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/2.98, allocations: 49.78 kB / 0.8668 GB, free: 1.031 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004543/2.98, allocations: 0.5576 MB / 0.8674 GB, free: 480 kB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/2.981, allocations: 50.94 kB / 0.8674 GB, free: 436 kB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/2.981, allocations: 12 kB / 0.8674 GB, free: 424 kB / 0.7012 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,checkValve3.fluid,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002334/2.981, allocations: 157.7 kB / 0.8676 GB, free: 284 kB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/2.981, allocations: 27.78 kB / 0.8676 GB, free: 256 kB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005541/2.982, allocations: 237.3 kB / 0.8678 GB, free: 56 kB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/2.982, allocations: 4 kB / 0.8678 GB, free: 52 kB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/2.982, allocations: 0 / 0.8678 GB, free: 52 kB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/2.982, allocations: 4 kB / 0.8678 GB, free: 48 kB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/2.982, allocations: 335.8 kB / 0.8681 GB, free: 15.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/2.982, allocations: 0 / 0.8681 GB, free: 15.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.393e-05/2.982, allocations: 22.89 kB / 0.8682 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000601/2.983, allocations: 116.1 kB / 0.8683 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/2.983, allocations: 6.609 kB / 0.8683 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003682/2.983, allocations: 0.5508 MB / 0.8688 GB, free: 15.04 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/2.983, allocations: 2.906 kB / 0.8688 GB, free: 15.04 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004632/2.984, allocations: 234.5 kB / 0.869 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/2.984, allocations: 108.6 kB / 0.8692 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.251e-05/2.984, allocations: 3.688 kB / 0.8692 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/2.984, allocations: 19.98 kB / 0.8692 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.094e-05/2.984, allocations: 15.66 kB / 0.8692 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/2.984, allocations: 4 kB / 0.8692 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002161/2.984, allocations: 195.1 kB / 0.8694 GB, free: 14.51 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.4e-07/2.984, allocations: 0 / 0.8694 GB, free: 14.51 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004808/2.989, allocations: 1.451 MB / 0.8708 GB, free: 13.16 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009483/2.999, allocations: 2.256 MB / 0.873 GB, free: 11.21 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006109/2.999, allocations: 193.2 kB / 0.8732 GB, free: 11.07 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/2.999, allocations: 0 / 0.8732 GB, free: 11.07 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000209/2.999, allocations: 77.61 kB / 0.8733 GB, free: 11.02 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/3, allocations: 75.64 kB / 0.8733 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/3.001, allocations: 0.6388 MB / 0.874 GB, free: 10.33 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/3.002, allocations: 0.7714 MB / 0.8747 GB, free: 9.531 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002115/3.002, allocations: 41.81 kB / 0.8747 GB, free: 9.492 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.321e-05/3.002, allocations: 31.42 kB / 0.8748 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of SimCode: time 7.82e-07/3.002, allocations: 0 / 0.8748 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of Templates: time 0.06783/3.07, allocations: 45.3 MB / 0.919 GB, free: 12.29 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) Environment - environmentSimulation: