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.0007544/0.0007543, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008052/0.0008051, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7355/0.7355, allocations: 132.4 MB / 423.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002928, allocations: 14.03 kB / 0.5034 GB, free: 4.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3495, allocations: 81.57 MB / 0.5831 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.04667/0.3962, allocations: 49.84 MB / 0.6318 GB, free: 14.18 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.413, allocations: 12.97 MB / 0.6444 GB, free: 1.664 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.4145, allocations: 63.56 kB / 0.6445 GB, free: 1.602 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001694/0.4162, allocations: 0.6405 MB / 0.6451 GB, free: 0.957 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003535/0.4197, allocations: 1.779 MB / 0.6468 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003425/0.4232, allocations: 1.487 MB / 0.6483 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004932/0.4281, allocations: 5.055 MB / 0.6532 GB, free: 8.637 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.4299, allocations: 1.158 MB / 0.6544 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002426/0.4324, allocations: 1.447 MB / 0.6558 GB, free: 6.004 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.4337, allocations: 1.19 MB / 0.6569 GB, free: 4.809 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.4339, allocations: 64 kB / 0.657 GB, free: 4.746 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.4359, allocations: 0.9829 MB / 0.658 GB, free: 3.762 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.4362, allocations: 366.6 kB / 0.6583 GB, free: 3.402 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003278/0.4366, allocations: 360.8 kB / 0.6587 GB, free: 3.043 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.4386, allocations: 2.229 MB / 0.6608 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4386, allocations: 0 / 0.6608 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4387, allocations: 0 / 0.6608 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.4387, allocations: 0 / 0.6608 GB, free: 0.8086 MB / 494.1 MB 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.002765/0.4414, allocations: 1.866 MB / 0.6627 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.4415, allocations: 12.03 kB / 0.6627 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/0.443, allocations: 393.5 kB / 0.663 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002319/0.4454, allocations: 1.413 MB / 0.6644 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003408/0.4457, allocations: 153.7 kB / 0.6646 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001549/0.4459, allocations: 108 kB / 0.6647 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002215/0.4481, allocations: 1.23 MB / 0.6659 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.4481, allocations: 0 / 0.6659 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.842e-05/0.4483, allocations: 40 kB / 0.6659 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.4483, allocations: 28 kB / 0.6659 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00229/0.4506, allocations: 1.042 MB / 0.667 GB, free: 10.38 MB / 0.4981 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.006338/0.4569, allocations: 5.156 MB / 0.672 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.4584, allocations: 0.688 MB / 0.6727 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006893/0.4591, allocations: 346.3 kB / 0.673 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003131/0.4622, allocations: 2.828 MB / 0.6758 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008769/0.4631, allocations: 453.6 kB / 0.6762 GB, free: 300 kB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002586/0.4634, allocations: 75.12 kB / 0.6763 GB, free: 224 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=57): time 1.733e-06/0.4634, allocations: 0 / 0.6763 GB, free: 224 kB / 0.4981 GB Notification: Performance of matching and sorting (n=57): time 0.002305/0.4657, allocations: 1.036 MB / 0.6773 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.4658, allocations: 81.67 kB / 0.6773 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.4676, allocations: 1.445 MB / 0.6788 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.271e-05/0.4676, allocations: 41.7 kB / 0.6788 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005481/0.4682, allocations: 0.7006 MB / 0.6795 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.4684, allocations: 193.3 kB / 0.6797 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/0.4684, allocations: 20 kB / 0.6797 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4685, allocations: 341.9 kB / 0.68 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008952/0.4694, allocations: 373.8 kB / 0.6804 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.4705, allocations: 0.6499 MB / 0.681 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009807/0.4715, allocations: 468.6 kB / 0.6815 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4715, allocations: 0 / 0.6815 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002419/0.474, allocations: 1.204 MB / 0.6826 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.4742, allocations: 344.3 kB / 0.683 GB, free: 9.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.4742, allocations: 8 kB / 0.683 GB, free: 9.051 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/0.4742, allocations: 16 kB / 0.683 GB, free: 9.035 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008618/0.4751, allocations: 227.7 kB / 0.6832 GB, free: 8.812 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.38e-05/0.4751, allocations: 15.94 kB / 0.6832 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.4762, allocations: 167.8 kB / 0.6834 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-05/0.4763, allocations: 55.95 kB / 0.6834 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.4764, allocations: 11.89 kB / 0.6834 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002/0.4784, allocations: 1.001 MB / 0.6844 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.4784, allocations: 8 kB / 0.6844 GB, free: 7.555 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.4784, allocations: 12 kB / 0.6844 GB, free: 7.543 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007556/0.4792, allocations: 219.8 kB / 0.6846 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/0.4792, allocations: 19.92 kB / 0.6847 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009188/0.4801, allocations: 124.4 kB / 0.6848 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.16e-05/0.4802, allocations: 51.97 kB / 0.6848 GB, free: 7.137 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,threeWayValveSwitch.switch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 103 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005359/0.4808, allocations: 432.8 kB / 0.6852 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.4809, allocations: 154.1 kB / 0.6854 GB, free: 6.551 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002458/0.4834, allocations: 1.236 MB / 0.6866 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.4834, allocations: 11.98 kB / 0.6866 GB, free: 5.316 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4834, allocations: 7.938 kB / 0.6866 GB, free: 5.309 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00168/0.4851, allocations: 0.9835 MB / 0.6876 GB, free: 4.281 MB / 0.5137 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 postOpt removeSimpleEquations (simulation): time 0.003839/0.489, allocations: 2.477 MB / 0.69 GB, free: 1.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.489, allocations: 3.938 kB / 0.69 GB, free: 1.723 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006433/0.4896, allocations: 152 kB / 0.6901 GB, free: 1.574 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/0.4897, allocations: 8 kB / 0.6902 GB, free: 1.566 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.134e-05/0.4897, allocations: 23.98 kB / 0.6902 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.4897, allocations: 4 kB / 0.6902 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.4897, allocations: 8 kB / 0.6902 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002749/0.4925, allocations: 1.597 MB / 0.6917 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004509/0.493, allocations: 346.9 kB / 0.6921 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000203/0.4932, allocations: 19.98 kB / 0.6921 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009075/0.4941, allocations: 95.91 kB / 0.6922 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.4942, allocations: 60.44 kB / 0.6922 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.078e-05/0.4943, allocations: 35.97 kB / 0.6923 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001416/0.4957, allocations: 0.9887 MB / 0.6932 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4957, allocations: 0 / 0.6932 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001977/0.4977, allocations: 0.7877 MB / 0.694 GB, free: 13.55 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (75): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001044/0.4988, allocations: 0.5055 MB / 0.6945 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003031/0.5018, allocations: 1.518 MB / 0.696 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.5018, allocations: 3.938 kB / 0.696 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009052/0.5027, allocations: 464.9 kB / 0.6964 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003203/0.5059, allocations: 0.8104 MB / 0.6972 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004544/0.5105, allocations: 3.274 MB / 0.7004 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008448/0.5114, allocations: 1.266 MB / 0.7017 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001545/0.5129, allocations: 406.7 kB / 0.702 GB, free: 5.281 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.5133, allocations: 143.3 kB / 0.7022 GB, free: 5.141 MB / 0.5294 GB Notification: Performance of SimCode: time 6.21e-07/0.5133, allocations: 0 / 0.7022 GB, free: 5.141 MB / 0.5294 GB Notification: Performance of Templates: time 0.04848/0.5617, allocations: 32.28 MB / 0.7337 GB, free: 5.293 MB / 0.5606 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)