Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.Fluid.Examples.SimpleExamples.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8811/0.8811, allocations: 150.8 MB / 166.1 MB, free: 15.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.778e-05/1.776e-05, allocations: 4 kB / 204.8 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2061, 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.TestThreeWayValve): time 1.796/2.003, allocations: 296.6 MB / 0.5208 GB, free: 10.49 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6841/2.687, allocations: 189.2 MB / 0.7056 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009165/2.688, allocations: 23.25 kB / 0.7056 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004471/2.688, allocations: 128.5 kB / 0.7058 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001101/2.689, allocations: 377.4 kB / 0.7061 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03766/2.727, allocations: 9.756 MB / 0.7157 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002595/2.73, allocations: 1.493 MB / 0.7171 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/2.731, allocations: 0.7724 MB / 0.7179 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006559/2.731, allocations: 467.7 kB / 0.7183 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005792/2.732, allocations: 0.5319 MB / 0.7188 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.073e-05/2.732, allocations: 57.16 kB / 0.7189 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04303/2.775, allocations: 20.25 MB / 0.7387 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004594/2.776, allocations: 224.7 kB / 0.7389 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001177/2.777, allocations: 0.6238 MB / 0.7395 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03272/2.809, allocations: 11.12 MB / 0.7504 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/2.809, allocations: 0 / 0.7504 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.274e-06/2.809, allocations: 4 kB / 0.7504 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.981e-05/2.81, allocations: 0 / 0.7504 GB, free: 14.17 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.007519/2.817, allocations: 2.452 MB / 0.7528 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/2.817, allocations: 8.281 kB / 0.7528 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/2.817, allocations: 158.7 kB / 0.7529 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009202/2.818, allocations: 0.7072 MB / 0.7536 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.053e-05/2.818, allocations: 101.8 kB / 0.7537 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/2.819, allocations: 135.2 kB / 0.7538 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/2.821, allocations: 1.323 MB / 0.7551 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/2.821, allocations: 5.844 kB / 0.7551 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.552e-05/2.821, allocations: 52 kB / 0.7552 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/2.821, allocations: 32.44 kB / 0.7552 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/2.823, allocations: 1.06 MB / 0.7562 GB, free: 11.57 MB / 0.5919 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.02619/2.849, allocations: 19.53 MB / 0.7753 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000738/2.85, allocations: 392.2 kB / 0.7757 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003607/2.85, allocations: 182 kB / 0.7759 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3796/3.23, allocations: 182 MB / 0.9536 GB, free: 7.723 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.411e-05/3.23, allocations: 34.56 kB / 0.9536 GB, free: 7.68 MB / 0.795 GB Notification: Performance of pre-optimization done (n=35): time 2.685e-06/3.23, allocations: 4 kB / 0.9537 GB, free: 7.676 MB / 0.795 GB Notification: Performance of matching and sorting (n=35): time 0.004539/3.234, allocations: 1.26 MB / 0.9549 GB, free: 6.602 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/3.234, allocations: 55.41 kB / 0.9549 GB, free: 6.535 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/3.235, allocations: 0.8459 MB / 0.9558 GB, free: 5.887 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.59e-05/3.236, allocations: 29.64 kB / 0.9558 GB, free: 5.855 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/3.236, allocations: 0.6519 MB / 0.9564 GB, free: 5.348 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/3.236, allocations: 124.8 kB / 0.9565 GB, free: 5.246 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/3.236, allocations: 93.84 kB / 0.9566 GB, free: 5.18 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001701/3.236, allocations: 392.8 kB / 0.957 GB, free: 4.82 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004627/3.237, allocations: 231.5 kB / 0.9572 GB, free: 4.668 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007033/3.238, allocations: 0.584 MB / 0.9578 GB, free: 3.977 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/3.239, allocations: 0.825 MB / 0.9586 GB, free: 3.035 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/3.239, allocations: 4 kB / 0.9586 GB, free: 3.031 MB / 0.795 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001721/3.24, allocations: 1.005 MB / 0.9596 GB, free: 2.086 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/3.24, allocations: 8 kB / 0.9596 GB, free: 2.078 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/3.24, allocations: 15.98 kB / 0.9596 GB, free: 2.062 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/3.243, allocations: 0.6425 MB / 0.9602 GB, free: 1.426 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004024/3.244, allocations: 143.6 kB / 0.9604 GB, free: 1.297 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/3.245, allocations: 0.9605 MB / 0.9613 GB, free: 328 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006437/3.246, allocations: 122.8 kB / 0.9614 GB, free: 204 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.356e-05/3.246, allocations: 46.91 kB / 0.9615 GB, free: 160 kB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 24 (threeWayValve.VolumeA1.Cs2.ftype,SourceP1.C.ftype,threeWayValve.VolumeA1.Cs1.ftype,threeWayValve.VolumeA1.Ce2.ftype,threeWayValve.VolumeA1.Ce2.diff_on_1,threeWayValve.VolumeA1.fluids[1],threeWayValve.VolumeA1.Cs2.diff_on_2,threeWayValve.VolumeA1.Cs1.diff_on_2,threeWayValve.PerteDP1.C2.diff_on_1,PuitsP1.fluid,threeWayValve.Valve1.fluid,threeWayValve.Valve2.fluid,threeWayValve.PerteDP1.fluid,PuitsP2.fluid,threeWayValve.VolumeA1.fluid1,threeWayValve.fluid1,SourceP1.fluid1,threeWayValve.VolumeA1.Ce1.diff_on_2,SourceP1.C.diff_on_2,threeWayValve.VolumeA1.Cs2.diff_on_1,threeWayValve.C3.diff_on_1,threeWayValve.VolumeA1.Cs1.diff_on_1,threeWayValve.C2.diff_on_1,threeWayValve.VolumeA1.Ce2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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 {(4,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0005605/3.246, allocations: 308.3 kB / 0.9618 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/3.247, allocations: 87 kB / 0.9619 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/3.248, allocations: 0.7 MB / 0.9625 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/3.248, allocations: 4 kB / 0.9625 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/3.248, allocations: 2.906 kB / 0.9625 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/3.248, allocations: 0 / 0.9625 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/3.249, allocations: 0.8305 MB / 0.9634 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/3.249, allocations: 0 / 0.9634 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/3.249, allocations: 23.98 kB / 0.9634 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001992/3.251, allocations: 0.4953 MB / 0.9639 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/3.251, allocations: 11.98 kB / 0.9639 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/3.253, allocations: 0.9533 MB / 0.9648 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/3.253, allocations: 0 / 0.9648 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/3.254, allocations: 0.7296 MB / 0.9655 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/3.254, allocations: 219.9 kB / 0.9657 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.207e-05/3.254, allocations: 8 kB / 0.9657 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/3.255, allocations: 15.98 kB / 0.9657 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/3.255, allocations: 38.55 kB / 0.9658 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.679e-05/3.255, allocations: 12 kB / 0.9658 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007074/3.256, allocations: 0.5381 MB / 0.9663 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/3.256, allocations: 4 kB / 0.9663 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006346/3.262, allocations: 1.646 MB / 0.9679 GB, free: 9.457 MB / 0.8106 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 (10): * Single equations (assignments): 9 * 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 {(4,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008758/3.271, allocations: 2.265 MB / 0.9701 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001749/3.272, allocations: 0.6206 MB / 0.9708 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/3.272, allocations: 0 / 0.9708 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005923/3.273, allocations: 234.1 kB / 0.971 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/3.274, allocations: 191.4 kB / 0.9712 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00337/3.278, allocations: 2.129 MB / 0.9732 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/3.278, allocations: 1.043 MB / 0.9743 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000493/3.279, allocations: 118.6 kB / 0.9744 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/3.279, allocations: 55.44 kB / 0.9744 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of SimCode: time 9.02e-07/3.279, allocations: 1.969 kB / 0.9744 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of Templates: time 0.2959/3.575, allocations: 52.27 MB / 1.025 GB, free: 437.6 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe 2>&1) Environment - environmentSimulation: