Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_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_dev_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.0008031/0.000803, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009483/0.0009481, allocations: 173 kB / 16.92 MB, free: 6.652 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.337/1.337, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9313/0.9313, allocations: 135.3 MB / 427.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 8 kB / 0.5082 GB, free: 4.781 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1483, allocations: 82.31 MB / 0.5886 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.3134/0.4617, allocations: 52.73 MB / 0.6401 GB, free: 22.29 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01616/0.4779, allocations: 13.76 MB / 0.6536 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002594/0.4806, allocations: 59.84 kB / 0.6536 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002671/0.4832, allocations: 0.8175 MB / 0.6544 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005317/0.4886, allocations: 2.023 MB / 0.6564 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004306/0.4929, allocations: 1.797 MB / 0.6581 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.007233/0.5001, allocations: 5.942 MB / 0.6639 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003269/0.5035, allocations: 1.285 MB / 0.6652 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003882/0.5074, allocations: 1.513 MB / 0.6667 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002595/0.51, allocations: 1.248 MB / 0.6679 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002964/0.5103, allocations: 65.5 kB / 0.668 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003591/0.5139, allocations: 1.317 MB / 0.6692 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006096/0.5145, allocations: 384.9 kB / 0.6696 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001293/0.5158, allocations: 0.836 MB / 0.6704 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003644/0.5195, allocations: 2.274 MB / 0.6727 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.5195, allocations: 0 / 0.6727 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.074e-06/0.5195, allocations: 4 kB / 0.6727 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.256e-05/0.5196, allocations: 0 / 0.6727 GB, free: 4.379 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.003696/0.5233, allocations: 1.854 MB / 0.6745 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.5233, allocations: 9.469 kB / 0.6745 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001976/0.5253, allocations: 398 kB / 0.6749 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003053/0.5284, allocations: 1.473 MB / 0.6763 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003807/0.5288, allocations: 146.7 kB / 0.6764 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001859/0.529, allocations: 109.2 kB / 0.6765 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.5316, allocations: 1.22 MB / 0.6777 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.5316, allocations: 1.375 kB / 0.6777 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.5317, allocations: 42.33 kB / 0.6778 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.5318, allocations: 24.47 kB / 0.6778 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002418/0.5342, allocations: 1.012 MB / 0.6788 GB, free: 1.223 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.008169/0.5424, allocations: 5.121 MB / 0.6838 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.5439, allocations: 0.6304 MB / 0.6844 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006849/0.5446, allocations: 316.9 kB / 0.6847 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005071/0.5497, allocations: 3.008 MB / 0.6876 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008414/0.5505, allocations: 356.9 kB / 0.688 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000518/0.5511, allocations: 70.72 kB / 0.688 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=54): time 2.615e-06/0.5511, allocations: 7.938 kB / 0.6881 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=54): time 0.002087/0.5532, allocations: 0.9019 MB / 0.6889 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.5532, allocations: 63.5 kB / 0.689 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002287/0.5555, allocations: 1.377 MB / 0.6903 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.05e-05/0.5556, allocations: 42.48 kB / 0.6904 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006901/0.5563, allocations: 0.7299 MB / 0.6911 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.5565, allocations: 196.5 kB / 0.6913 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.5567, allocations: 89.33 kB / 0.6914 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.5568, allocations: 343 kB / 0.6917 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008504/0.5577, allocations: 339.8 kB / 0.692 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.5588, allocations: 0.6955 MB / 0.6927 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.5606, allocations: 1.02 MB / 0.6937 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.5606, allocations: 2.688 kB / 0.6937 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002741/0.5633, allocations: 1.208 MB / 0.6949 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003455/0.5637, allocations: 439.8 kB / 0.6953 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.108e-05/0.5637, allocations: 14.44 kB / 0.6953 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.013e-05/0.5637, allocations: 15.72 kB / 0.6953 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008763/0.5646, allocations: 240.3 kB / 0.6956 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.939e-05/0.5647, allocations: 22.58 kB / 0.6956 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.5663, allocations: 148.5 kB / 0.6957 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.5664, allocations: 57.11 kB / 0.6958 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.797e-06/0.5664, allocations: 3.656 kB / 0.6958 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002274/0.5687, allocations: 1.057 MB / 0.6968 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.5687, allocations: 10.91 kB / 0.6968 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.5688, allocations: 17.55 kB / 0.6968 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008548/0.5696, allocations: 240 kB / 0.6971 GB, free: 5.715 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.577e-05/0.5697, allocations: 26.11 kB / 0.6971 GB, free: 5.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.571, allocations: 132.2 kB / 0.6972 GB, free: 5.672 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.806e-05/0.5711, allocations: 55.48 kB / 0.6973 GB, free: 5.664 MB / 0.5137 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 (116): * Single equations (assignments): 114 * 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.0008564/0.5719, allocations: 443.4 kB / 0.6977 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.5722, allocations: 147.6 kB / 0.6978 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.5745, allocations: 1.163 MB / 0.699 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.72e-05/0.5745, allocations: 16.2 kB / 0.699 GB, free: 4.734 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.5745, allocations: 3.938 kB / 0.699 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001539/0.5761, allocations: 0.912 MB / 0.6999 GB, free: 4.148 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.00408/0.5802, allocations: 2.242 MB / 0.7021 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5802, allocations: 1.25 kB / 0.7021 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000566/0.5808, allocations: 127.6 kB / 0.7022 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.167e-05/0.5808, allocations: 3.688 kB / 0.7022 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.147e-05/0.5808, allocations: 24.61 kB / 0.7022 GB, free: 2.594 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.958e-06/0.5809, allocations: 7.188 kB / 0.7022 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5809, allocations: 2.188 kB / 0.7022 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.5835, allocations: 1.449 MB / 0.7036 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006804/0.5842, allocations: 328.4 kB / 0.704 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.5844, allocations: 20.11 kB / 0.704 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008767/0.5852, allocations: 89.28 kB / 0.7041 GB, free: 1.434 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.5854, allocations: 50.61 kB / 0.7041 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.329e-05/0.5855, allocations: 35.22 kB / 0.7041 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001592/0.5871, allocations: 0.9372 MB / 0.7051 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5871, allocations: 0 / 0.7051 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002779/0.5898, allocations: 0.8002 MB / 0.7058 GB, free: 0.707 MB / 0.5137 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 (72): * Single equations (assignments): 58 * 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.00125/0.5911, allocations: 0.5163 MB / 0.7063 GB, free: 440 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003037/0.5942, allocations: 1.5 MB / 0.7078 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.5942, allocations: 1.875 kB / 0.7078 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007422/0.5949, allocations: 412.8 kB / 0.7082 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003851/0.5988, allocations: 0.7487 MB / 0.7089 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004933/0.6037, allocations: 3.341 MB / 0.7122 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007975/0.6046, allocations: 1.262 MB / 0.7134 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004088/0.605, allocations: 135.4 kB / 0.7136 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of SimCode: time 8.31e-07/0.605, allocations: 0 / 0.7136 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of Templates: time 0.0404/0.6454, allocations: 27.64 MB / 0.7405 GB, free: 15.44 MB / 0.5606 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)