Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.00158, allocations: 105.1 kB / 16.41 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 189.7 kB / 17.35 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7726/0.7726, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 62.81 kB / 0.582 GB, free: 23.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1971/0.1983, allocations: 80.21 MB / 0.6604 GB, free: 10.25 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pumpEmission.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.05156/0.25, allocations: 54.2 MB / 0.7133 GB, free: 3.852 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02139/0.2714, allocations: 13.86 MB / 0.7268 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003698/0.2751, allocations: 71.62 kB / 0.7269 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00349/0.2787, allocations: 0.9551 MB / 0.7278 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007114/0.2858, allocations: 2.16 MB / 0.7299 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005808/0.2916, allocations: 2.014 MB / 0.7319 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.007221/0.2989, allocations: 4.428 MB / 0.7362 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002959/0.3019, allocations: 1.563 MB / 0.7377 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004947/0.3069, allocations: 1.847 MB / 0.7396 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002664/0.3095, allocations: 1.276 MB / 0.7408 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003754/0.3099, allocations: 164 kB / 0.741 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003435/0.3134, allocations: 1.412 MB / 0.7423 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005957/0.314, allocations: 478.5 kB / 0.7428 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.3153, allocations: 0.9447 MB / 0.7437 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005416/0.3207, allocations: 3.081 MB / 0.7467 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3208, allocations: 0 / 0.7467 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.444e-06/0.3208, allocations: 0 / 0.7467 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.521e-05/0.3208, allocations: 0 / 0.7467 GB, free: 1.5 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: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.4395/0.7604, allocations: 2.149 MB / 0.7488 GB, free: 84.99 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.7604, allocations: 9.938 kB / 0.7488 GB, free: 84.99 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002162/0.7626, allocations: 377.7 kB / 0.7492 GB, free: 84.9 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003529/0.7661, allocations: 1.481 MB / 0.7506 GB, free: 84.47 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.622e-05/0.7663, allocations: 80.19 kB / 0.7507 GB, free: 84.47 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.7665, allocations: 108.3 kB / 0.7508 GB, free: 84.47 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/0.7689, allocations: 1.201 MB / 0.752 GB, free: 83.99 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.769, allocations: 3.938 kB / 0.752 GB, free: 83.98 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-05/0.7691, allocations: 42.22 kB / 0.752 GB, free: 83.95 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.7691, allocations: 24.78 kB / 0.7521 GB, free: 83.95 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.7713, allocations: 0.9709 MB / 0.753 GB, free: 83.63 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.008086/0.7794, allocations: 5.132 MB / 0.758 GB, free: 80.25 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.781, allocations: 0.6183 MB / 0.7586 GB, free: 80.02 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000692/0.7817, allocations: 294.2 kB / 0.7589 GB, free: 79.91 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004569/0.7863, allocations: 2.985 MB / 0.7618 GB, free: 77.42 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008738/0.7872, allocations: 340.9 kB / 0.7621 GB, free: 77.28 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 2.705e-06/0.7872, allocations: 1.781 kB / 0.7621 GB, free: 77.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.002329/0.7895, allocations: 0.8656 MB / 0.763 GB, free: 76.96 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.7896, allocations: 57.41 kB / 0.763 GB, free: 76.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/0.7917, allocations: 1.388 MB / 0.7644 GB, free: 76.36 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.017e-05/0.7918, allocations: 39.42 kB / 0.7644 GB, free: 76.32 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005701/0.7924, allocations: 0.7345 MB / 0.7652 GB, free: 75.74 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.7926, allocations: 190 kB / 0.7653 GB, free: 75.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.7929, allocations: 206.4 kB / 0.7655 GB, free: 75.51 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.937e-05/0.793, allocations: 342 kB / 0.7659 GB, free: 75.19 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007716/0.7938, allocations: 328.5 kB / 0.7662 GB, free: 75.08 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009508/0.7947, allocations: 0.6733 MB / 0.7668 GB, free: 74.54 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.7962, allocations: 0.9776 MB / 0.7678 GB, free: 73.86 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.7963, allocations: 3.219 kB / 0.7678 GB, free: 73.86 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002529/0.7988, allocations: 1.165 MB / 0.7689 GB, free: 73.39 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.984e-05/0.7989, allocations: 37.09 kB / 0.769 GB, free: 73.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/0.7989, allocations: 12.06 kB / 0.769 GB, free: 73.36 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.352e-05/0.7989, allocations: 16.84 kB / 0.769 GB, free: 73.36 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009452/0.7999, allocations: 234.3 kB / 0.7692 GB, free: 73.33 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.19e-05/0.7999, allocations: 25.09 kB / 0.7692 GB, free: 73.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.8012, allocations: 160.5 kB / 0.7694 GB, free: 73.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.8013, allocations: 54.2 kB / 0.7694 GB, free: 73.24 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001195/0.8026, allocations: 0.6066 MB / 0.77 GB, free: 72.95 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008962/0.8035, allocations: 0.6681 MB / 0.7707 GB, free: 72.39 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001502/0.805, allocations: 0.9839 MB / 0.7716 GB, free: 71.67 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.705e-06/0.805, allocations: 3.438 kB / 0.7716 GB, free: 71.67 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002343/0.8073, allocations: 1.155 MB / 0.7728 GB, free: 71.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.8074, allocations: 40.3 kB / 0.7728 GB, free: 71.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.8074, allocations: 10.41 kB / 0.7728 GB, free: 71.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.8074, allocations: 16.09 kB / 0.7728 GB, free: 71.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007876/0.8082, allocations: 234.7 kB / 0.7731 GB, free: 71.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.241e-05/0.8083, allocations: 20.38 kB / 0.7731 GB, free: 71.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.8094, allocations: 126.6 kB / 0.7732 GB, free: 71.04 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.587e-05/0.8095, allocations: 56.72 kB / 0.7733 GB, free: 71.02 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 (threeWayValveSwitch.switch,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 113 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003106/0.8098, allocations: 249.1 kB / 0.7735 GB, free: 70.79 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.8101, allocations: 143.7 kB / 0.7736 GB, free: 70.71 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/0.8123, allocations: 1.131 MB / 0.7747 GB, free: 70.12 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/0.8123, allocations: 18.77 kB / 0.7748 GB, free: 70.11 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.8123, allocations: 0 / 0.7748 GB, free: 70.11 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001385/0.8137, allocations: 0.8874 MB / 0.7756 GB, free: 69.54 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/0.8172, allocations: 2.198 MB / 0.7778 GB, free: 68.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.8172, allocations: 0 / 0.7778 GB, free: 68.06 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000541/0.8178, allocations: 128 kB / 0.7779 GB, free: 68.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.121e-05/0.8178, allocations: 4 kB / 0.7779 GB, free: 68.02 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.547e-05/0.8179, allocations: 23.89 kB / 0.7779 GB, free: 68.01 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.205e-06/0.8179, allocations: 4.594 kB / 0.7779 GB, free: 68.01 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.8179, allocations: 0.9375 kB / 0.7779 GB, free: 68.01 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002451/0.8203, allocations: 1.42 MB / 0.7793 GB, free: 67.19 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005787/0.8209, allocations: 336.8 kB / 0.7796 GB, free: 66.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.8211, allocations: 13.47 kB / 0.7796 GB, free: 66.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006922/0.8218, allocations: 53.02 kB / 0.7797 GB, free: 66.86 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.822, allocations: 58.98 kB / 0.7797 GB, free: 66.83 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.564e-05/0.822, allocations: 31.61 kB / 0.7798 GB, free: 66.82 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00141/0.8234, allocations: 0.9403 MB / 0.7807 GB, free: 66.31 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.91e-07/0.8235, allocations: 2.031 kB / 0.7807 GB, free: 66.31 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00253/0.826, allocations: 0.8092 MB / 0.7815 GB, free: 66.16 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (threeWayValveSwitch.vol.dynBal.U,T_mix.T,T_leg0.T,T_leg1.T) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,threeWayValveSwitch.switch) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001157/0.8272, allocations: 0.5398 MB / 0.782 GB, free: 65.95 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002759/0.8299, allocations: 1.446 MB / 0.7834 GB, free: 65.25 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.8299, allocations: 0 / 0.7834 GB, free: 65.25 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006297/0.8306, allocations: 404.3 kB / 0.7838 GB, free: 65.07 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002892/0.8335, allocations: 0.8049 MB / 0.7846 GB, free: 64.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003805/0.8373, allocations: 2.657 MB / 0.7872 GB, free: 63.04 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.8379, allocations: 1.266 MB / 0.7884 GB, free: 61.75 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/0.8382, allocations: 135.4 kB / 0.7886 GB, free: 61.61 MB / 0.5762 GB Notification: Performance of SimCode: time 8.12e-07/0.8382, allocations: 0 / 0.7886 GB, free: 61.61 MB / 0.5762 GB Notification: Performance of Templates: time 0.0362/0.8744, allocations: 28.38 MB / 0.8163 GB, free: 33.46 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)