Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.909/0.909, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.727e-05/1.728e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1914, allocations: 31.97 MB / 236.8 MB, free: 5.195 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.Examples.SimpleExamples.TestDynamicCheckValve): time 1.687/1.878, allocations: 293.8 MB / 0.5182 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04591/1.924, allocations: 37.45 MB / 0.5547 GB, free: 7.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002639/1.924, allocations: 0 / 0.5547 GB, free: 7.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004248/1.925, allocations: 111.4 kB / 0.5548 GB, free: 7.871 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003923/1.925, allocations: 107.2 kB / 0.5549 GB, free: 7.766 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02341/1.948, allocations: 7.448 MB / 0.5622 GB, free: 328 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007276/1.949, allocations: 426.6 kB / 0.5626 GB, free: 15.9 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003162/1.95, allocations: 128.2 kB / 0.5628 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/1.95, allocations: 159.2 kB / 0.5629 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002688/1.95, allocations: 147.2 kB / 0.563 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/1.95, allocations: 12 kB / 0.5631 GB, free: 15.46 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03306/1.983, allocations: 17.81 MB / 0.5805 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/1.984, allocations: 47.77 kB / 0.5805 GB, free: 13.58 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002813/1.984, allocations: 188.7 kB / 0.5807 GB, free: 13.39 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0218/2.006, allocations: 8.417 MB / 0.5889 GB, free: 4.953 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/2.006, allocations: 0 / 0.5889 GB, free: 4.953 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.599e-06/2.006, allocations: 0 / 0.5889 GB, free: 4.953 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.987e-05/2.006, allocations: 3.938 kB / 0.5889 GB, free: 4.949 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004891/2.011, allocations: 1.493 MB / 0.5904 GB, free: 3.406 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/2.011, allocations: 8.031 kB / 0.5904 GB, free: 3.398 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/2.011, allocations: 39.47 kB / 0.5904 GB, free: 3.359 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/2.011, allocations: 262.3 kB / 0.5907 GB, free: 3.062 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.696e-05/2.011, allocations: 50.27 kB / 0.5907 GB, free: 3.008 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.391e-05/2.011, allocations: 24 kB / 0.5907 GB, free: 2.984 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005703/2.012, allocations: 350.7 kB / 0.5911 GB, free: 2.609 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/2.012, allocations: 0 / 0.5911 GB, free: 2.609 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/2.012, allocations: 13.41 kB / 0.5911 GB, free: 2.598 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/2.012, allocations: 19.92 kB / 0.5911 GB, free: 2.578 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/2.012, allocations: 237.7 kB / 0.5913 GB, free: 2.348 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02135/2.034, allocations: 10.04 MB / 0.6011 GB, free: 7.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008401/2.035, allocations: 305.8 kB / 0.6014 GB, free: 6.961 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/2.035, allocations: 145.1 kB / 0.6016 GB, free: 6.816 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1741/2.209, allocations: 86.21 MB / 0.6857 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004632/2.21, allocations: 224 kB / 0.686 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.324e-06/2.21, allocations: 0 / 0.686 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001337/2.211, allocations: 0.5849 MB / 0.6865 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/2.211, allocations: 89.06 kB / 0.6866 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/2.211, allocations: 250.6 kB / 0.6868 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/2.211, allocations: 29.64 kB / 0.6869 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/2.211, allocations: 168.9 kB / 0.687 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/2.212, allocations: 153.6 kB / 0.6872 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.86e-05/2.212, allocations: 37.7 kB / 0.6872 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001201/2.212, allocations: 350.8 kB / 0.6876 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/2.212, allocations: 116.8 kB / 0.6877 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/2.212, allocations: 160.1 kB / 0.6878 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/2.213, allocations: 295.2 kB / 0.6881 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/2.213, allocations: 0 / 0.6881 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008675/2.214, allocations: 443.4 kB / 0.6885 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/2.214, allocations: 4 kB / 0.6885 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/2.214, allocations: 4 kB / 0.6885 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/2.215, allocations: 221.5 kB / 0.6887 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/2.215, allocations: 27.98 kB / 0.6888 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/2.217, allocations: 2.269 MB / 0.691 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/2.217, allocations: 43.61 kB / 0.691 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/2.217, allocations: 11.98 kB / 0.691 GB, free: 1.254 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001877/2.218, allocations: 157.8 kB / 0.6912 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.468e-05/2.218, allocations: 27.62 kB / 0.6912 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008049/2.218, allocations: 0.5678 MB / 0.6918 GB, free: 468 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005164/2.219, allocations: 370.3 kB / 0.6921 GB, free: 84 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/2.219, allocations: 288 / 0.6921 GB, free: 84 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/2.219, allocations: 0 / 0.6921 GB, free: 84 kB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2039/2.423, allocations: 0.9821 MB / 0.6931 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/2.423, allocations: 0.6562 kB / 0.6931 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/2.423, allocations: 62.19 kB / 0.6931 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005991/2.424, allocations: 127.6 kB / 0.6933 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/2.424, allocations: 14.69 kB / 0.6933 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004255/2.424, allocations: 0.6296 MB / 0.6939 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/2.424, allocations: 3.562 kB / 0.6939 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/2.425, allocations: 0.6628 MB / 0.6945 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/2.426, allocations: 146 kB / 0.6947 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.221e-05/2.426, allocations: 12.77 kB / 0.6947 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/2.426, allocations: 29.25 kB / 0.6947 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/2.426, allocations: 30.91 kB / 0.6948 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/2.426, allocations: 9.766 kB / 0.6948 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002531/2.426, allocations: 220 kB / 0.695 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/2.426, allocations: 0 / 0.695 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004745/2.431, allocations: 1.21 MB / 0.6962 GB, free: 227.3 MB / 0.5762 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.005818/2.437, allocations: 1.777 MB / 0.6979 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001156/2.438, allocations: 493 kB / 0.6984 GB, free: 227 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/2.438, allocations: 1.25 kB / 0.6984 GB, free: 227 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004135/2.438, allocations: 197.8 kB / 0.6985 GB, free: 227 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008746/2.439, allocations: 133.6 kB / 0.6987 GB, free: 227 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/2.441, allocations: 1.086 MB / 0.6997 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/2.442, allocations: 0.8066 MB / 0.7005 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001649/2.442, allocations: 35 kB / 0.7006 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.433e-05/2.442, allocations: 29.91 kB / 0.7006 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/2.442, allocations: 0 / 0.7006 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.05188/2.494, allocations: 43.29 MB / 0.7429 GB, free: 202 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) Environment - environmentSimulation: