Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8976/0.8976, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.457e-05/1.46e-05, allocations: 0 / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1732, 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.TestControlValve): time 1.668/1.841, allocations: 293.6 MB / 0.518 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2106/2.052, allocations: 186.5 MB / 0.7001 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003247/2.052, allocations: 7.938 kB / 0.7001 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002247/2.052, allocations: 79.7 kB / 0.7002 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003632/2.053, allocations: 155.1 kB / 0.7003 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3899/2.442, allocations: 8.911 MB / 0.709 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006208/2.443, allocations: 414.1 kB / 0.7094 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003146/2.443, allocations: 182.7 kB / 0.7096 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/2.444, allocations: 140.2 kB / 0.7097 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/2.444, allocations: 191.1 kB / 0.7099 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/2.444, allocations: 15.12 kB / 0.7099 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03344/2.477, allocations: 20.07 MB / 0.7295 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001801/2.478, allocations: 80.09 kB / 0.7296 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002775/2.478, allocations: 209 kB / 0.7298 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02915/2.507, allocations: 9.863 MB / 0.7394 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.06e-05/2.507, allocations: 0 / 0.7394 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.918e-06/2.507, allocations: 1.562 kB / 0.7394 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.863e-05/2.507, allocations: 3.844 kB / 0.7394 GB, free: 2.363 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.006986/2.514, allocations: 1.755 MB / 0.7412 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/2.514, allocations: 11.41 kB / 0.7412 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/2.514, allocations: 53.88 kB / 0.7412 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005289/2.515, allocations: 339.8 kB / 0.7415 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/2.515, allocations: 30.28 kB / 0.7416 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.326e-05/2.515, allocations: 35.41 kB / 0.7416 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006481/2.516, allocations: 380 kB / 0.742 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/2.516, allocations: 4.094 kB / 0.742 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/2.516, allocations: 18.25 kB / 0.742 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/2.516, allocations: 11.77 kB / 0.742 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004753/2.516, allocations: 262.4 kB / 0.7422 GB, free: 0.6992 MB / 0.5762 GB 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.009735/2.526, allocations: 6.217 MB / 0.7483 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/2.526, allocations: 112.5 kB / 0.7484 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.537e-05/2.526, allocations: 50.25 kB / 0.7485 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2406/2.767, allocations: 119.3 MB / 0.865 GB, free: 2.781 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/2.767, allocations: 30.56 kB / 0.865 GB, free: 2.742 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 2.494e-06/2.767, allocations: 4 kB / 0.865 GB, free: 2.738 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0009859/2.768, allocations: 317.5 kB / 0.8653 GB, free: 2.441 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/2.768, allocations: 51.41 kB / 0.8653 GB, free: 2.379 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005512/2.769, allocations: 418.6 kB / 0.8657 GB, free: 2.039 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/2.769, allocations: 29.7 kB / 0.8658 GB, free: 2.004 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/2.769, allocations: 266.1 kB / 0.866 GB, free: 1.801 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/2.769, allocations: 27.33 kB / 0.8661 GB, free: 1.777 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.076e-05/2.769, allocations: 29.08 kB / 0.8661 GB, free: 1.75 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000128/2.769, allocations: 348.2 kB / 0.8664 GB, free: 1.418 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/2.769, allocations: 62.72 kB / 0.8665 GB, free: 1.371 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/2.769, allocations: 160.7 kB / 0.8666 GB, free: 1.195 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/2.77, allocations: 228.7 kB / 0.8668 GB, free: 0.9805 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/2.77, allocations: 4 kB / 0.8668 GB, free: 0.9766 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006324/2.77, allocations: 314.6 kB / 0.8671 GB, free: 0.7383 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/2.77, allocations: 9.25 kB / 0.8672 GB, free: 0.7305 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/2.77, allocations: 4 kB / 0.8672 GB, free: 0.7266 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008852/2.771, allocations: 144.4 kB / 0.8673 GB, free: 0.5859 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/2.771, allocations: 38.45 kB / 0.8673 GB, free: 0.5547 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005532/2.772, allocations: 0.5733 MB / 0.8679 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/2.772, allocations: 27.25 kB / 0.8679 GB, free: 15.95 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/2.772, allocations: 13.03 kB / 0.8679 GB, free: 15.94 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: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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.0001965/2.772, allocations: 178.2 kB / 0.8681 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.424e-05/2.773, allocations: 34.53 kB / 0.8681 GB, free: 15.75 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005471/2.773, allocations: 214.8 kB / 0.8683 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/2.773, allocations: 4 kB / 0.8683 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/2.773, allocations: 0 / 0.8683 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/2.773, allocations: 3.984 kB / 0.8683 GB, free: 15.56 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/2.773, allocations: 363 kB / 0.8687 GB, free: 15.22 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/2.774, allocations: 0 / 0.8687 GB, free: 15.22 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.467e-05/2.774, allocations: 4 kB / 0.8687 GB, free: 15.22 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005161/2.774, allocations: 88.39 kB / 0.8688 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/2.774, allocations: 11.59 kB / 0.8688 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004519/2.775, allocations: 0.5639 MB / 0.8693 GB, free: 14.56 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/2.775, allocations: 3.938 kB / 0.8693 GB, free: 14.56 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00039/2.775, allocations: 205.9 kB / 0.8695 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/2.775, allocations: 116.2 kB / 0.8697 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.988e-05/2.775, allocations: 0 / 0.8697 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.352e-05/2.775, allocations: 10.66 kB / 0.8697 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/2.775, allocations: 7.984 kB / 0.8697 GB, free: 14.22 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/2.775, allocations: 0 / 0.8697 GB, free: 14.22 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003467/2.776, allocations: 310.1 kB / 0.87 GB, free: 13.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.2e-07/2.776, allocations: 0 / 0.87 GB, free: 13.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.005078/2.781, allocations: 1.451 MB / 0.8714 GB, free: 12.62 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.008705/2.789, allocations: 2.263 MB / 0.8736 GB, free: 10.68 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005554/2.79, allocations: 158.1 kB / 0.8737 GB, free: 10.56 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/2.79, allocations: 0.875 kB / 0.8737 GB, free: 10.56 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001877/2.79, allocations: 72.55 kB / 0.8738 GB, free: 10.5 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/2.791, allocations: 60.53 kB / 0.8739 GB, free: 10.45 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/2.792, allocations: 0.7452 MB / 0.8746 GB, free: 9.719 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/2.792, allocations: 0.8023 MB / 0.8754 GB, free: 8.891 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001775/2.793, allocations: 42.97 kB / 0.8754 GB, free: 8.848 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.708e-05/2.793, allocations: 31.38 kB / 0.8755 GB, free: 8.816 MB / 0.7169 GB Notification: Performance of SimCode: time 5.81e-07/2.793, allocations: 0 / 0.8755 GB, free: 8.816 MB / 0.7169 GB Notification: Performance of Templates: time 0.0665/2.859, allocations: 45.69 MB / 0.9201 GB, free: 11.27 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) Environment - environmentSimulation: