Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.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.Book.SimpleExamples.PressureLoss.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7317/0.7317, allocations: 150.8 MB / 166.1 MB, free: 15.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.158e-05/1.163e-05, allocations: 0 / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1368, allocations: 31.98 MB / 236.8 MB, free: 5.199 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.Book.SimpleExamples.PressureLoss.TestThreeWayValve): time 1.429/1.566, allocations: 295.6 MB / 0.5198 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0395/1.605, allocations: 37.89 MB / 0.5569 GB, free: 5.723 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/1.606, allocations: 4 kB / 0.5569 GB, free: 5.719 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005428/1.606, allocations: 167 kB / 0.557 GB, free: 5.555 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007905/1.607, allocations: 266.1 kB / 0.5573 GB, free: 5.293 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01907/1.626, allocations: 7.592 MB / 0.5647 GB, free: 13.7 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/1.627, allocations: 0.9882 MB / 0.5656 GB, free: 12.71 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/1.628, allocations: 388.5 kB / 0.566 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/1.628, allocations: 326.3 kB / 0.5663 GB, free: 12.01 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/1.628, allocations: 310.2 kB / 0.5666 GB, free: 11.7 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/1.628, allocations: 27.94 kB / 0.5667 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02499/1.653, allocations: 17.82 MB / 0.5841 GB, free: 9.832 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002148/1.654, allocations: 119.4 kB / 0.5842 GB, free: 9.715 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004396/1.654, allocations: 411.4 kB / 0.5846 GB, free: 9.305 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01692/1.671, allocations: 9.036 MB / 0.5934 GB, free: 252 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/1.671, allocations: 0 / 0.5934 GB, free: 252 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.373e-06/1.671, allocations: 0 / 0.5934 GB, free: 252 kB / 478.1 MB Notification: Performance of Transformations before backend: time 3.125e-05/1.671, allocations: 4 kB / 0.5934 GB, free: 248 kB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004443/1.676, allocations: 1.832 MB / 0.5952 GB, free: 14.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/1.676, allocations: 12.03 kB / 0.5952 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/1.676, allocations: 90.88 kB / 0.5953 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/1.676, allocations: 460.1 kB / 0.5957 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/1.676, allocations: 49.31 kB / 0.5958 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.593e-05/1.676, allocations: 60 kB / 0.5958 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/1.678, allocations: 0.8606 MB / 0.5967 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/1.678, allocations: 8 kB / 0.5967 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.328e-05/1.678, allocations: 28 kB / 0.5967 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-05/1.678, allocations: 31.97 kB / 0.5967 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009105/1.679, allocations: 0.5591 MB / 0.5973 GB, free: 12.11 MB / 494.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.05283/1.732, allocations: 29.77 MB / 0.6263 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006607/1.732, allocations: 384.1 kB / 0.6267 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003827/1.733, allocations: 279 kB / 0.627 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3719/2.105, allocations: 77.92 MB / 0.7031 GB, free: 129.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/2.105, allocations: 38.31 kB / 0.7031 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=91): time 2.775e-06/2.105, allocations: 0.5312 kB / 0.7031 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91): time 0.003408/2.108, allocations: 1.306 MB / 0.7044 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/2.108, allocations: 81.81 kB / 0.7045 GB, free: 129.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006322/2.109, allocations: 0.5042 MB / 0.705 GB, free: 129.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/2.109, allocations: 33.83 kB / 0.705 GB, free: 129 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/2.109, allocations: 335.8 kB / 0.7053 GB, free: 128.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/2.109, allocations: 301.5 kB / 0.7056 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.401e-05/2.109, allocations: 77.08 kB / 0.7057 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.759e-05/2.109, allocations: 377.6 kB / 0.706 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/2.11, allocations: 211.6 kB / 0.7062 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004194/2.11, allocations: 372.6 kB / 0.7066 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008566/2.111, allocations: 0.6423 MB / 0.7072 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/2.111, allocations: 2.844 kB / 0.7072 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001496/2.112, allocations: 0.8948 MB / 0.7081 GB, free: 128 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/2.113, allocations: 10.31 kB / 0.7081 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/2.113, allocations: 4.125 kB / 0.7081 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/2.116, allocations: 0.9914 MB / 0.7091 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/2.116, allocations: 36.09 kB / 0.7091 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/2.117, allocations: 1.094 MB / 0.7102 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/2.117, allocations: 87.8 kB / 0.7103 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/2.117, allocations: 21.89 kB / 0.7103 GB, free: 127.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 14 (PuitsP2.C.a,threeWayValve.PerteDP1.C2.b,threeWayValve.PerteDP1.C1.a,threeWayValve.VolumeA1.Cs2.b,threeWayValve.VolumeA1.Cs1.b,threeWayValve.VolumeA1.Ce2.a,threeWayValve.VolumeA1.Ce1.a,threeWayValve.Valve2.C2.b,threeWayValve.Valve2.C1.a,threeWayValve.Valve1.C2.b,threeWayValve.Valve1.C1.a,PuitsP1.C.a,SourceP1.C.b,threeWayValve.VolumeA1.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(7,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002432/2.118, allocations: 224.3 kB / 0.7105 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.515e-05/2.118, allocations: 63.91 kB / 0.7106 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/2.12, allocations: 2.154 MB / 0.7127 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001057/2.121, allocations: 0.8178 MB / 0.7135 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/2.121, allocations: 0 / 0.7135 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/2.121, allocations: 7.688 kB / 0.7135 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/2.123, allocations: 2.153 MB / 0.7156 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/2.123, allocations: 0.6094 kB / 0.7156 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/2.123, allocations: 86.36 kB / 0.7156 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001661/2.125, allocations: 0.7313 MB / 0.7164 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/2.125, allocations: 14.38 kB / 0.7164 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008764/2.126, allocations: 1.04 MB / 0.7174 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/2.126, allocations: 0 / 0.7174 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/2.128, allocations: 1.298 MB / 0.7187 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002376/2.128, allocations: 243.5 kB / 0.7189 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.703e-05/2.128, allocations: 13.38 kB / 0.7189 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/2.128, allocations: 36.27 kB / 0.7189 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.35e-05/2.128, allocations: 36.48 kB / 0.719 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/2.128, allocations: 21.34 kB / 0.719 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004187/2.129, allocations: 463.9 kB / 0.7194 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.129, allocations: 2 kB / 0.7194 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00264/2.131, allocations: 1.318 MB / 0.7207 GB, free: 125.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (threeWayValve.VolumeA1.h) * 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 (48): * Single equations (assignments): 46 * 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 {(6,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004747/2.136, allocations: 1.777 MB / 0.7225 GB, free: 125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001307/2.138, allocations: 0.8678 MB / 0.7233 GB, free: 124.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/2.138, allocations: 256 / 0.7233 GB, free: 124.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006939/2.138, allocations: 404 kB / 0.7237 GB, free: 124.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/2.14, allocations: 334.4 kB / 0.724 GB, free: 124.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/2.142, allocations: 1.997 MB / 0.726 GB, free: 123.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/2.142, allocations: 1.014 MB / 0.727 GB, free: 123 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002341/2.142, allocations: 74.09 kB / 0.727 GB, free: 123 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.145e-05/2.142, allocations: 39.06 kB / 0.7271 GB, free: 123 MB / 0.5762 GB Notification: Performance of SimCode: time 4.01e-07/2.142, allocations: 3.938 kB / 0.7271 GB, free: 123 MB / 0.5762 GB Notification: Performance of Templates: time 0.05013/2.193, allocations: 50.64 MB / 0.7765 GB, free: 76.58 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe 2>&1) Environment - environmentSimulation: