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.001262/0.001262, allocations: 109.5 kB / 16.41 MB, free: 6.453 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.001321/0.001321, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8297/0.8297, allocations: 132.2 MB / 423.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 66.97 kB / 0.582 GB, free: 23.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1726, allocations: 80.21 MB / 0.6604 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.05398/0.2266, allocations: 54.2 MB / 0.7133 GB, free: 3.863 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01993/0.2466, allocations: 13.86 MB / 0.7268 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002726/0.2493, allocations: 71.62 kB / 0.7269 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002998/0.2524, allocations: 0.9668 MB / 0.7278 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006137/0.2586, allocations: 2.149 MB / 0.7299 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005222/0.2638, allocations: 2.015 MB / 0.7319 GB, free: 0.7695 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006463/0.2703, allocations: 4.432 MB / 0.7362 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00258/0.2729, allocations: 1.571 MB / 0.7378 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004569/0.2775, allocations: 1.847 MB / 0.7396 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/0.2797, allocations: 1.264 MB / 0.7408 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003529/0.2801, allocations: 163.9 kB / 0.741 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003423/0.2835, allocations: 1.416 MB / 0.7423 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005283/0.284, allocations: 482.5 kB / 0.7428 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001135/0.2852, allocations: 0.933 MB / 0.7437 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00443/0.2896, allocations: 3.093 MB / 0.7467 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2896, allocations: 0 / 0.7467 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2897, allocations: 0 / 0.7467 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.257e-05/0.2897, allocations: 0 / 0.7467 GB, free: 1.504 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.3769/0.6666, allocations: 2.147 MB / 0.7488 GB, free: 85.01 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.6667, allocations: 9.031 kB / 0.7488 GB, free: 85.01 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002074/0.6688, allocations: 376.7 kB / 0.7492 GB, free: 84.91 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003396/0.6722, allocations: 1.481 MB / 0.7506 GB, free: 84.49 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.398e-05/0.6723, allocations: 82.64 kB / 0.7507 GB, free: 84.49 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001902/0.6725, allocations: 106.2 kB / 0.7508 GB, free: 84.49 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/0.675, allocations: 1.2 MB / 0.752 GB, free: 84.01 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/0.675, allocations: 9.094 kB / 0.752 GB, free: 84 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.541e-05/0.6751, allocations: 41.62 kB / 0.752 GB, free: 83.97 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.6752, allocations: 25.98 kB / 0.7521 GB, free: 83.97 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002301/0.6775, allocations: 0.9697 MB / 0.753 GB, free: 83.65 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.008008/0.6855, allocations: 5.134 MB / 0.758 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001561/0.6871, allocations: 0.6099 MB / 0.7586 GB, free: 80.03 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006921/0.6878, allocations: 294.6 kB / 0.7589 GB, free: 79.93 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004678/0.6925, allocations: 2.985 MB / 0.7618 GB, free: 77.44 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008959/0.6934, allocations: 343.9 kB / 0.7621 GB, free: 77.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 4.128e-06/0.6934, allocations: 0 / 0.7621 GB, free: 77.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.002419/0.6958, allocations: 0.8643 MB / 0.763 GB, free: 76.98 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.6959, allocations: 60.19 kB / 0.763 GB, free: 76.92 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/0.6982, allocations: 1.388 MB / 0.7644 GB, free: 76.38 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.815e-05/0.6982, allocations: 41.83 kB / 0.7644 GB, free: 76.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005615/0.6988, allocations: 0.73 MB / 0.7652 GB, free: 75.76 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.699, allocations: 191.9 kB / 0.7653 GB, free: 75.62 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/0.6993, allocations: 203.3 kB / 0.7655 GB, free: 75.52 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.802e-05/0.6994, allocations: 345.9 kB / 0.7659 GB, free: 75.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007915/0.7002, allocations: 328.2 kB / 0.7662 GB, free: 75.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009701/0.7012, allocations: 0.6673 MB / 0.7668 GB, free: 74.56 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001577/0.7028, allocations: 0.9826 MB / 0.7678 GB, free: 73.87 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.7028, allocations: 3.875 kB / 0.7678 GB, free: 73.87 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002618/0.7054, allocations: 1.166 MB / 0.7689 GB, free: 73.41 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.7055, allocations: 40.84 kB / 0.769 GB, free: 73.37 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.7055, allocations: 10.03 kB / 0.769 GB, free: 73.37 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.754e-05/0.7055, allocations: 20.23 kB / 0.769 GB, free: 73.37 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.7065, allocations: 226.1 kB / 0.7692 GB, free: 73.35 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.952e-05/0.7066, allocations: 22.16 kB / 0.7692 GB, free: 73.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.708, allocations: 163.2 kB / 0.7694 GB, free: 73.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.7081, allocations: 56.94 kB / 0.7694 GB, free: 73.26 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001295/0.7094, allocations: 0.6027 MB / 0.77 GB, free: 72.96 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009242/0.7103, allocations: 0.6691 MB / 0.7707 GB, free: 72.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001541/0.7119, allocations: 0.9819 MB / 0.7716 GB, free: 71.69 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.515e-06/0.7119, allocations: 3.188 kB / 0.7716 GB, free: 71.69 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002543/0.7145, allocations: 1.163 MB / 0.7728 GB, free: 71.18 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.7145, allocations: 36.64 kB / 0.7728 GB, free: 71.15 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.7145, allocations: 10.41 kB / 0.7728 GB, free: 71.15 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.7146, allocations: 16.53 kB / 0.7728 GB, free: 71.15 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007989/0.7154, allocations: 235 kB / 0.7731 GB, free: 71.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.726e-05/0.7154, allocations: 19.72 kB / 0.7731 GB, free: 71.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.7168, allocations: 123.2 kB / 0.7732 GB, free: 71.02 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.7169, allocations: 52.7 kB / 0.7733 GB, free: 71 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.0003229/0.7172, allocations: 254 kB / 0.7735 GB, free: 70.77 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003847/0.7176, allocations: 142.8 kB / 0.7736 GB, free: 70.69 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002436/0.72, allocations: 1.13 MB / 0.7747 GB, free: 70.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.213e-05/0.7201, allocations: 11.8 kB / 0.7747 GB, free: 70.09 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.7201, allocations: 0 / 0.7747 GB, free: 70.09 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001445/0.7215, allocations: 0.8914 MB / 0.7756 GB, free: 69.52 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004308/0.7259, allocations: 2.189 MB / 0.7778 GB, free: 68.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.7259, allocations: 5.312 kB / 0.7778 GB, free: 68.04 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005583/0.7265, allocations: 128.6 kB / 0.7779 GB, free: 68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.306e-05/0.7265, allocations: 2.719 kB / 0.7779 GB, free: 68 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.7265, allocations: 21.2 kB / 0.7779 GB, free: 67.99 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/0.7266, allocations: 2.938 kB / 0.7779 GB, free: 67.99 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.7266, allocations: 1.344 kB / 0.7779 GB, free: 67.99 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.7292, allocations: 1.428 MB / 0.7793 GB, free: 67.17 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007415/0.7299, allocations: 328.2 kB / 0.7796 GB, free: 66.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000362/0.7303, allocations: 21 kB / 0.7796 GB, free: 66.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009238/0.7312, allocations: 49.67 kB / 0.7797 GB, free: 66.85 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.7314, allocations: 58.8 kB / 0.7797 GB, free: 66.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.738e-05/0.7315, allocations: 27.08 kB / 0.7798 GB, free: 66.81 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001431/0.7329, allocations: 0.9485 MB / 0.7807 GB, free: 66.29 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7329, allocations: 1.469 kB / 0.7807 GB, free: 66.29 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002621/0.7355, allocations: 0.8101 MB / 0.7815 GB, free: 66.14 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.001189/0.7367, allocations: 0.537 MB / 0.782 GB, free: 65.94 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002993/0.7397, allocations: 1.453 MB / 0.7834 GB, free: 65.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7398, allocations: 0.6875 kB / 0.7834 GB, free: 65.22 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007077/0.7405, allocations: 399.1 kB / 0.7838 GB, free: 65.05 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/0.7437, allocations: 0.7994 MB / 0.7846 GB, free: 64.68 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004017/0.7477, allocations: 2.671 MB / 0.7872 GB, free: 62.96 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005703/0.7483, allocations: 1.262 MB / 0.7884 GB, free: 61.67 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003544/0.7487, allocations: 135.4 kB / 0.7886 GB, free: 61.54 MB / 0.5762 GB Notification: Performance of SimCode: time 8.11e-07/0.7487, allocations: 0 / 0.7886 GB, free: 61.54 MB / 0.5762 GB Notification: Performance of Templates: time 0.04058/0.7893, allocations: 28.61 MB / 0.8165 GB, free: 33.16 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)