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.001131/0.001131, allocations: 101.6 kB / 16.37 MB, free: 6.441 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.001067/0.001067, allocations: 195.3 kB / 17.31 MB, free: 5.812 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7982/0.7982, allocations: 132.2 MB / 423.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 55.91 kB / 0.5032 GB, free: 10.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4139, allocations: 80.2 MB / 0.5815 GB, free: 27.75 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.04659/0.4606, allocations: 54.19 MB / 0.6344 GB, free: 8.055 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02079/0.4814, allocations: 13.86 MB / 0.648 GB, free: 10.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002674/0.4841, allocations: 75.56 kB / 0.648 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.4868, allocations: 0.9569 MB / 0.649 GB, free: 9.125 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006169/0.493, allocations: 2.156 MB / 0.6511 GB, free: 6.961 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00558/0.4986, allocations: 2.013 MB / 0.6531 GB, free: 4.961 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.008744/0.5074, allocations: 4.43 MB / 0.6574 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003106/0.5105, allocations: 1.583 MB / 0.6589 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004932/0.5155, allocations: 1.81 MB / 0.6607 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002376/0.5179, allocations: 1.264 MB / 0.6619 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004015/0.5183, allocations: 164 kB / 0.6621 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003541/0.5218, allocations: 1.416 MB / 0.6635 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005902/0.5225, allocations: 490.4 kB / 0.6639 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.5237, allocations: 0.9292 MB / 0.6648 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004591/0.5283, allocations: 3.085 MB / 0.6679 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.5284, allocations: 4 kB / 0.6679 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.375e-06/0.5284, allocations: 0 / 0.6679 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.807e-05/0.5285, allocations: 3.938 kB / 0.6679 GB, free: 5.738 MB / 0.4981 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.00385/0.5323, allocations: 2.152 MB / 0.67 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.5324, allocations: 8.031 kB / 0.67 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.5342, allocations: 370.5 kB / 0.6703 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003081/0.5373, allocations: 1.494 MB / 0.6718 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.048e-05/0.5374, allocations: 82 kB / 0.6719 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.5376, allocations: 104 kB / 0.672 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00223/0.5398, allocations: 1.196 MB / 0.6731 GB, free: 192 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.5398, allocations: 3.984 kB / 0.6731 GB, free: 188 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.461e-05/0.5399, allocations: 40 kB / 0.6732 GB, free: 148 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.54, allocations: 28 kB / 0.6732 GB, free: 120 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00225/0.5422, allocations: 0.9758 MB / 0.6741 GB, free: 15.14 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 preOpt removeSimpleEquations (simulation): time 0.007704/0.5499, allocations: 5.133 MB / 0.6792 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.5514, allocations: 0.6126 MB / 0.6798 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006148/0.552, allocations: 294.4 kB / 0.68 GB, free: 8.812 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004218/0.5562, allocations: 2.998 MB / 0.683 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007507/0.557, allocations: 329.3 kB / 0.6833 GB, free: 5.121 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 3.055e-06/0.557, allocations: 4 kB / 0.6833 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002038/0.5591, allocations: 0.8681 MB / 0.6841 GB, free: 4.246 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.5591, allocations: 59.83 kB / 0.6842 GB, free: 4.176 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001957/0.5611, allocations: 1.388 MB / 0.6855 GB, free: 2.777 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.108e-05/0.5612, allocations: 41.69 kB / 0.6856 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000586/0.5618, allocations: 0.7345 MB / 0.6863 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.5619, allocations: 185.3 kB / 0.6865 GB, free: 1.805 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002994/0.5623, allocations: 206.3 kB / 0.6867 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5624, allocations: 345.9 kB / 0.687 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007443/0.5631, allocations: 332.7 kB / 0.6873 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.5642, allocations: 0.6725 MB / 0.688 GB, free: 92 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001621/0.5658, allocations: 0.9735 MB / 0.6889 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-06/0.5658, allocations: 4 kB / 0.6889 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002451/0.5683, allocations: 1.159 MB / 0.6901 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.436e-05/0.5683, allocations: 37.7 kB / 0.6901 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.5683, allocations: 12 kB / 0.6901 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.238e-05/0.5684, allocations: 23.92 kB / 0.6901 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008239/0.5692, allocations: 227.9 kB / 0.6904 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.576e-05/0.5693, allocations: 23.92 kB / 0.6904 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.5704, allocations: 159.4 kB / 0.6905 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.5705, allocations: 51.98 kB / 0.6906 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001217/0.5717, allocations: 0.6034 MB / 0.6912 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009734/0.5727, allocations: 0.6647 MB / 0.6918 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001595/0.5743, allocations: 0.9928 MB / 0.6928 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.132e-05/0.5743, allocations: 3.984 kB / 0.6928 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002395/0.5767, allocations: 1.151 MB / 0.6939 GB, free: 9.512 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.5768, allocations: 38.02 kB / 0.6939 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.5768, allocations: 16 kB / 0.694 GB, free: 9.453 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.5768, allocations: 16 kB / 0.694 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008019/0.5776, allocations: 231.5 kB / 0.6942 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.5777, allocations: 19.94 kB / 0.6942 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.5787, allocations: 124 kB / 0.6943 GB, free: 9.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-05/0.5788, allocations: 55.97 kB / 0.6944 GB, free: 9.016 MB / 0.5294 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.0002841/0.5791, allocations: 247.9 kB / 0.6946 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.5794, allocations: 146.1 kB / 0.6948 GB, free: 8.621 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.5817, allocations: 1.125 MB / 0.6959 GB, free: 7.516 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.5818, allocations: 15.98 kB / 0.6959 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.5818, allocations: 0 / 0.6959 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001436/0.5832, allocations: 0.8859 MB / 0.6967 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003566/0.5868, allocations: 2.209 MB / 0.6989 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.5868, allocations: 4 kB / 0.6989 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.5874, allocations: 119.9 kB / 0.699 GB, free: 4.164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.5874, allocations: 4 kB / 0.699 GB, free: 4.16 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.018e-05/0.5875, allocations: 19.98 kB / 0.699 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.5875, allocations: 7.938 kB / 0.6991 GB, free: 4.133 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5875, allocations: 0 / 0.6991 GB, free: 4.133 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.5899, allocations: 1.426 MB / 0.7004 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005761/0.5905, allocations: 327 kB / 0.7008 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001645/0.5907, allocations: 12 kB / 0.7008 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/0.5914, allocations: 59.86 kB / 0.7008 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.5915, allocations: 56.42 kB / 0.7009 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.042e-05/0.5916, allocations: 31.98 kB / 0.7009 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00147/0.5931, allocations: 0.9406 MB / 0.7018 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.5931, allocations: 0 / 0.7018 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002513/0.5956, allocations: 0.8148 MB / 0.7026 GB, free: 432 kB / 0.5294 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.001247/0.5969, allocations: 0.5454 MB / 0.7032 GB, free: 15.89 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003008/0.5999, allocations: 1.449 MB / 0.7046 GB, free: 14.42 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5999, allocations: 0 / 0.7046 GB, free: 14.42 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007942/0.6007, allocations: 412.1 kB / 0.705 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00349/0.6042, allocations: 0.7922 MB / 0.7057 GB, free: 13.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004518/0.6088, allocations: 2.598 MB / 0.7083 GB, free: 10.63 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008995/0.6097, allocations: 1.266 MB / 0.7095 GB, free: 9.34 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00163/0.6113, allocations: 408 kB / 0.7099 GB, free: 8.961 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002886/0.6116, allocations: 127.4 kB / 0.71 GB, free: 8.836 MB / 0.545 GB Notification: Performance of SimCode: time 6.61e-07/0.6116, allocations: 3.938 kB / 0.71 GB, free: 8.832 MB / 0.545 GB Notification: Performance of Templates: time 0.0531/0.6647, allocations: 31.95 MB / 0.7412 GB, free: 9.277 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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)