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.001245/0.001245, allocations: 111 kB / 16.37 MB, free: 6.012 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.001371/0.001371, allocations: 190.1 kB / 17.31 MB, free: 5.613 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.77/0.77, allocations: 132.2 MB / 423.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001262, allocations: 59.91 kB / 0.5032 GB, free: 10.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3858, allocations: 80.18 MB / 0.5815 GB, free: 27.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.04335/0.4292, allocations: 54.21 MB / 0.6344 GB, free: 8.035 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01981/0.449, allocations: 13.86 MB / 0.648 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003227/0.4523, allocations: 75.56 kB / 0.648 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002987/0.4554, allocations: 0.9608 MB / 0.649 GB, free: 9.109 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005868/0.4612, allocations: 2.153 MB / 0.6511 GB, free: 6.945 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004911/0.4662, allocations: 2.014 MB / 0.6531 GB, free: 4.945 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.006018/0.4722, allocations: 4.428 MB / 0.6574 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.4744, allocations: 1.567 MB / 0.6589 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003736/0.4781, allocations: 1.817 MB / 0.6607 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001835/0.48, allocations: 1.276 MB / 0.6619 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000233/0.4802, allocations: 167.9 kB / 0.6621 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002813/0.483, allocations: 1.416 MB / 0.6635 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004591/0.4835, allocations: 478.5 kB / 0.6639 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009651/0.4845, allocations: 0.933 MB / 0.6648 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004206/0.4887, allocations: 3.081 MB / 0.6679 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.4887, allocations: 0 / 0.6679 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4887, allocations: 0 / 0.6679 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.139e-05/0.4887, allocations: 0 / 0.6679 GB, free: 5.734 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.00349/0.4922, allocations: 2.164 MB / 0.67 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.4923, allocations: 8.031 kB / 0.67 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/0.494, allocations: 366.5 kB / 0.6703 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002896/0.4969, allocations: 1.49 MB / 0.6718 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.936e-05/0.497, allocations: 78 kB / 0.6719 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.4972, allocations: 112 kB / 0.672 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/0.4995, allocations: 1.194 MB / 0.6731 GB, free: 184 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.4995, allocations: 7.938 kB / 0.6731 GB, free: 176 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.4996, allocations: 44 kB / 0.6732 GB, free: 132 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.257e-05/0.4996, allocations: 24 kB / 0.6732 GB, free: 108 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002175/0.5018, allocations: 0.9719 MB / 0.6741 GB, free: 15.13 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.007124/0.5089, allocations: 5.129 MB / 0.6792 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.5103, allocations: 0.618 MB / 0.6798 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000617/0.511, allocations: 294.4 kB / 0.68 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004094/0.5151, allocations: 2.986 MB / 0.683 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000744/0.5158, allocations: 337.2 kB / 0.6833 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.344e-06/0.5158, allocations: 4 kB / 0.6833 GB, free: 5.109 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002125/0.518, allocations: 0.8682 MB / 0.6841 GB, free: 4.238 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.518, allocations: 59.84 kB / 0.6842 GB, free: 4.168 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.5199, allocations: 1.384 MB / 0.6855 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.814e-05/0.52, allocations: 41.7 kB / 0.6856 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006034/0.5206, allocations: 0.7345 MB / 0.6863 GB, free: 1.984 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.5208, allocations: 193.3 kB / 0.6865 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002955/0.5211, allocations: 210.3 kB / 0.6867 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.5212, allocations: 341.9 kB / 0.687 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007258/0.5219, allocations: 320.7 kB / 0.6873 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.523, allocations: 0.6763 MB / 0.688 GB, free: 88 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.5246, allocations: 0.989 MB / 0.6889 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.5246, allocations: 0 / 0.6889 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002276/0.5269, allocations: 1.155 MB / 0.6901 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.35e-05/0.527, allocations: 38.02 kB / 0.6901 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.527, allocations: 16 kB / 0.6901 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.477e-05/0.527, allocations: 19.94 kB / 0.6901 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008269/0.5279, allocations: 227.6 kB / 0.6904 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.596e-05/0.5279, allocations: 27.98 kB / 0.6904 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.529, allocations: 155.4 kB / 0.6905 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.877e-05/0.5291, allocations: 59.98 kB / 0.6906 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001114/0.5302, allocations: 0.5995 MB / 0.6912 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009909/0.5312, allocations: 0.6725 MB / 0.6918 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001547/0.5327, allocations: 0.9774 MB / 0.6928 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.338e-06/0.5328, allocations: 0 / 0.6928 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.00224/0.535, allocations: 1.159 MB / 0.6939 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.535, allocations: 37.7 kB / 0.6939 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.5351, allocations: 15.98 kB / 0.694 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.5351, allocations: 16 kB / 0.694 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000794/0.5359, allocations: 239.9 kB / 0.6942 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.5359, allocations: 19.92 kB / 0.6942 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009926/0.5369, allocations: 120 kB / 0.6943 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.7e-05/0.537, allocations: 55.98 kB / 0.6944 GB, free: 9 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.000242/0.5373, allocations: 246 kB / 0.6946 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.5375, allocations: 146.1 kB / 0.6948 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002248/0.5397, allocations: 1.124 MB / 0.6959 GB, free: 7.504 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.5398, allocations: 8 kB / 0.6959 GB, free: 7.496 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.5398, allocations: 0 / 0.6959 GB, free: 7.496 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001437/0.5412, allocations: 0.8937 MB / 0.6967 GB, free: 6.555 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.5447, allocations: 2.209 MB / 0.6989 GB, free: 4.273 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.5447, allocations: 0 / 0.6989 GB, free: 4.273 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005533/0.5453, allocations: 123.8 kB / 0.699 GB, free: 4.152 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.5453, allocations: 8.125 kB / 0.699 GB, free: 4.145 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/0.5454, allocations: 23.92 kB / 0.6991 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/0.5454, allocations: 4 kB / 0.6991 GB, free: 4.117 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5454, allocations: 0 / 0.6991 GB, free: 4.117 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002441/0.5478, allocations: 1.426 MB / 0.7004 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005241/0.5484, allocations: 323 kB / 0.7008 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.5485, allocations: 23.98 kB / 0.7008 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007111/0.5493, allocations: 51.86 kB / 0.7008 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.5494, allocations: 48.5 kB / 0.7009 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.252e-05/0.5495, allocations: 31.97 kB / 0.7009 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001354/0.5508, allocations: 0.9484 MB / 0.7018 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/0.5508, allocations: 4 kB / 0.7018 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002067/0.5529, allocations: 0.8109 MB / 0.7026 GB, free: 416 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.00108/0.554, allocations: 0.5347 MB / 0.7032 GB, free: 15.89 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002884/0.5569, allocations: 1.449 MB / 0.7046 GB, free: 14.41 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/0.5569, allocations: 0 / 0.7046 GB, free: 14.41 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007505/0.5577, allocations: 407.7 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.002853/0.5605, allocations: 0.7934 MB / 0.7057 GB, free: 13.28 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/0.5651, allocations: 2.602 MB / 0.7083 GB, free: 10.62 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009426/0.566, allocations: 1.262 MB / 0.7095 GB, free: 9.336 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001481/0.5675, allocations: 409.2 kB / 0.7099 GB, free: 8.953 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/0.5678, allocations: 131.4 kB / 0.71 GB, free: 8.824 MB / 0.545 GB Notification: Performance of SimCode: time 2.755e-06/0.5679, allocations: 0 / 0.71 GB, free: 8.824 MB / 0.545 GB Notification: Performance of Templates: time 0.05084/0.6187, allocations: 31.96 MB / 0.7412 GB, free: 9.266 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 gbode -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)