Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7362/0.7362, allocations: 150.8 MB / 166.1 MB, free: 15.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.427e-05/1.427e-05, allocations: 4 kB / 204.8 MB, free: 10.2 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1333, allocations: 31.98 MB / 236.8 MB, free: 5.414 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.TestThreeWayValve): time 1.433/1.566, allocations: 295.7 MB / 0.5199 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03835/1.604, allocations: 37.89 MB / 0.5569 GB, free: 5.688 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002639/1.605, allocations: 8 kB / 0.5569 GB, free: 5.68 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004056/1.605, allocations: 171 kB / 0.5571 GB, free: 5.512 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004684/1.606, allocations: 262.1 kB / 0.5574 GB, free: 5.254 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01851/1.624, allocations: 7.594 MB / 0.5648 GB, free: 13.66 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/1.625, allocations: 0.9921 MB / 0.5657 GB, free: 12.66 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000414/1.626, allocations: 372.8 kB / 0.5661 GB, free: 12.3 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/1.626, allocations: 330.3 kB / 0.5664 GB, free: 11.98 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/1.626, allocations: 310.2 kB / 0.5667 GB, free: 11.67 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.212e-05/1.626, allocations: 20 kB / 0.5667 GB, free: 11.65 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02624/1.653, allocations: 17.82 MB / 0.5841 GB, free: 9.805 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002041/1.653, allocations: 123.3 kB / 0.5843 GB, free: 9.684 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004711/1.653, allocations: 411.4 kB / 0.5846 GB, free: 9.273 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01572/1.669, allocations: 9.032 MB / 0.5935 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/1.669, allocations: 4 kB / 0.5935 GB, free: 220 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.443e-06/1.669, allocations: 0 / 0.5935 GB, free: 220 kB / 478.1 MB Notification: Performance of Transformations before backend: time 2.151e-05/1.669, allocations: 0 / 0.5935 GB, free: 220 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.004234/1.673, allocations: 1.836 MB / 0.5953 GB, free: 14.33 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/1.673, allocations: 12.02 kB / 0.5953 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/1.674, allocations: 94.88 kB / 0.5954 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005003/1.674, allocations: 452.1 kB / 0.5958 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.221e-05/1.674, allocations: 49.31 kB / 0.5958 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.778e-05/1.674, allocations: 60 kB / 0.5959 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/1.675, allocations: 0.8606 MB / 0.5967 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/1.675, allocations: 4 kB / 0.5967 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/1.676, allocations: 24 kB / 0.5968 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/1.676, allocations: 39.97 kB / 0.5968 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009072/1.677, allocations: 0.563 MB / 0.5974 GB, free: 12.07 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.05293/1.729, allocations: 29.77 MB / 0.6264 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006712/1.73, allocations: 392 kB / 0.6268 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003982/1.731, allocations: 279 kB / 0.6271 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3728/2.103, allocations: 77.93 MB / 0.7032 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/2.103, allocations: 39.31 kB / 0.7032 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=91): time 3.076e-06/2.103, allocations: 1.281 kB / 0.7032 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91): time 0.003442/2.107, allocations: 1.301 MB / 0.7045 GB, free: 129.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/2.107, allocations: 80.09 kB / 0.7045 GB, free: 129.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007041/2.108, allocations: 0.511 MB / 0.705 GB, free: 129 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/2.108, allocations: 27.08 kB / 0.7051 GB, free: 129 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/2.108, allocations: 335.4 kB / 0.7054 GB, free: 128.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000157/2.108, allocations: 300 kB / 0.7057 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.324e-05/2.108, allocations: 77.45 kB / 0.7058 GB, free: 128.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001025/2.108, allocations: 379 kB / 0.7061 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000364/2.109, allocations: 215.6 kB / 0.7063 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004162/2.109, allocations: 371 kB / 0.7067 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008495/2.11, allocations: 0.6428 MB / 0.7073 GB, free: 128 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/2.11, allocations: 1 kB / 0.7073 GB, free: 128 MB / 0.5762 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001595/2.111, allocations: 0.8915 MB / 0.7082 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/2.112, allocations: 11.31 kB / 0.7082 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/2.112, allocations: 5.703 kB / 0.7082 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002997/2.115, allocations: 0.9939 MB / 0.7092 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/2.115, allocations: 35.95 kB / 0.7092 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/2.116, allocations: 1.098 MB / 0.7103 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/2.116, allocations: 87.3 kB / 0.7104 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/2.116, allocations: 21.22 kB / 0.7104 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.000244/2.117, allocations: 221.9 kB / 0.7106 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.973e-05/2.117, allocations: 64.34 kB / 0.7106 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/2.119, allocations: 2.152 MB / 0.7127 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001095/2.12, allocations: 0.8253 MB / 0.7136 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/2.12, allocations: 0 / 0.7136 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/2.12, allocations: 6.984 kB / 0.7136 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/2.122, allocations: 2.152 MB / 0.7157 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/2.122, allocations: 2.859 kB / 0.7157 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002522/2.123, allocations: 83.34 kB / 0.7157 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001669/2.124, allocations: 0.7341 MB / 0.7165 GB, free: 126.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/2.124, allocations: 10.41 kB / 0.7165 GB, free: 126.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008804/2.125, allocations: 1.034 MB / 0.7175 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/2.125, allocations: 3.75 kB / 0.7175 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/2.127, allocations: 1.303 MB / 0.7188 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/2.127, allocations: 244.2 kB / 0.719 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.478e-05/2.127, allocations: 10.25 kB / 0.719 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/2.127, allocations: 29.77 kB / 0.719 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/2.127, allocations: 45.55 kB / 0.7191 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/2.127, allocations: 14.47 kB / 0.7191 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004326/2.128, allocations: 463.6 kB / 0.7195 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/2.128, allocations: 2.875 kB / 0.7195 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002822/2.131, allocations: 1.323 MB / 0.7208 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.004809/2.136, allocations: 1.781 MB / 0.7226 GB, free: 125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00134/2.137, allocations: 0.8575 MB / 0.7234 GB, free: 124.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/2.137, allocations: 0 / 0.7234 GB, free: 124.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006854/2.138, allocations: 409 kB / 0.7238 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.001514/2.139, allocations: 330.2 kB / 0.7241 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/2.141, allocations: 1.995 MB / 0.7261 GB, free: 123.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/2.142, allocations: 1.011 MB / 0.727 GB, free: 123 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00023/2.142, allocations: 76.89 kB / 0.7271 GB, free: 123 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.277e-05/2.142, allocations: 40 kB / 0.7271 GB, free: 123 MB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/2.142, allocations: 0 / 0.7271 GB, free: 123 MB / 0.5762 GB Notification: Performance of Templates: time 0.04902/2.191, allocations: 50.63 MB / 0.7766 GB, free: 76.54 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe 2>&1) Environment - environmentSimulation: