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.001251/0.001251, allocations: 106.9 kB / 16.41 MB, free: 6.492 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.001363/0.001363, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.451/1.451, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9096/0.9096, allocations: 135.1 MB / 426.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 64.03 kB / 0.5863 GB, free: 21.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1887, allocations: 80.93 MB / 0.6653 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.05657/0.2453, allocations: 54.19 MB / 0.7182 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02149/0.2668, allocations: 13.86 MB / 0.7318 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003113/0.27, allocations: 71.56 kB / 0.7318 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00312/0.2732, allocations: 0.9629 MB / 0.7328 GB, free: 488 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006499/0.2797, allocations: 2.153 MB / 0.7349 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005674/0.2854, allocations: 2.015 MB / 0.7369 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00703/0.2924, allocations: 4.424 MB / 0.7412 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00262/0.295, allocations: 1.579 MB / 0.7427 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004944/0.3, allocations: 1.838 MB / 0.7445 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002456/0.3025, allocations: 1.272 MB / 0.7458 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004861/0.303, allocations: 164 kB / 0.7459 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004086/0.3071, allocations: 1.412 MB / 0.7473 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007178/0.3078, allocations: 490.4 kB / 0.7478 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.3092, allocations: 0.933 MB / 0.7487 GB, free: 152 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.4827/0.7919, allocations: 3.082 MB / 0.7517 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.792, allocations: 0.6094 kB / 0.7517 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.356e-06/0.792, allocations: 1.562 kB / 0.7517 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.682e-05/0.7921, allocations: 0 / 0.7517 GB, free: 10.44 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.005042/0.7971, allocations: 2.153 MB / 0.7538 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.7972, allocations: 11.02 kB / 0.7538 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001962/0.7991, allocations: 372.8 kB / 0.7542 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003158/0.8023, allocations: 1.483 MB / 0.7556 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.664e-05/0.8024, allocations: 82.86 kB / 0.7557 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/0.8026, allocations: 105.3 kB / 0.7558 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002662/0.8053, allocations: 1.202 MB / 0.757 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.8053, allocations: 0.6875 kB / 0.757 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.8054, allocations: 42.69 kB / 0.757 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-05/0.8055, allocations: 25.53 kB / 0.757 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00256/0.808, allocations: 0.9747 MB / 0.758 GB, free: 8.707 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.008823/0.8169, allocations: 5.13 MB / 0.763 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.8184, allocations: 0.6089 MB / 0.7636 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007218/0.8191, allocations: 295.4 kB / 0.7639 GB, free: 6.402 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00436/0.8235, allocations: 2.991 MB / 0.7668 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008429/0.8243, allocations: 340.9 kB / 0.7671 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 5.05e-06/0.8243, allocations: 0 / 0.7671 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.002206/0.8266, allocations: 0.8636 MB / 0.7679 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.8266, allocations: 56.75 kB / 0.768 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002137/0.8288, allocations: 1.396 MB / 0.7694 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.124e-05/0.8288, allocations: 37.67 kB / 0.7694 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000633/0.8295, allocations: 0.7359 MB / 0.7701 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.8297, allocations: 186.2 kB / 0.7703 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/0.83, allocations: 207.9 kB / 0.7705 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.8301, allocations: 352.3 kB / 0.7708 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008901/0.831, allocations: 326.6 kB / 0.7711 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009897/0.832, allocations: 0.6665 MB / 0.7718 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.8336, allocations: 0.9807 MB / 0.7727 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.8336, allocations: 3.344 kB / 0.7728 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002508/0.8361, allocations: 1.164 MB / 0.7739 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/0.8362, allocations: 37.02 kB / 0.7739 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/0.8362, allocations: 10.69 kB / 0.7739 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.31e-05/0.8362, allocations: 15.66 kB / 0.7739 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008294/0.8371, allocations: 232.7 kB / 0.7742 GB, free: 2.109 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.886e-05/0.8371, allocations: 21.72 kB / 0.7742 GB, free: 2.109 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.8384, allocations: 171.6 kB / 0.7744 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.8386, allocations: 53.33 kB / 0.7744 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001379/0.8399, allocations: 0.6046 MB / 0.775 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001075/0.841, allocations: 0.665 MB / 0.7756 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001693/0.8427, allocations: 0.9844 MB / 0.7766 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.012e-05/0.8428, allocations: 3.719 kB / 0.7766 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002515/0.8453, allocations: 1.161 MB / 0.7777 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.8453, allocations: 39.3 kB / 0.7778 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.8454, allocations: 10.75 kB / 0.7778 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.8454, allocations: 16.03 kB / 0.7778 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007978/0.8462, allocations: 227.2 kB / 0.778 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.498e-05/0.8462, allocations: 21.58 kB / 0.778 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.8475, allocations: 125.3 kB / 0.7782 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.8476, allocations: 60.89 kB / 0.7782 GB, free: 0.8359 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.0003127/0.8479, allocations: 239.6 kB / 0.7784 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.8481, allocations: 147.1 kB / 0.7786 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/0.8505, allocations: 1.131 MB / 0.7797 GB, free: 496 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/0.8505, allocations: 10.5 kB / 0.7797 GB, free: 496 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8505, allocations: 0 / 0.7797 GB, free: 496 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001533/0.852, allocations: 0.8931 MB / 0.7806 GB, free: 16.22 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003804/0.8559, allocations: 2.195 MB / 0.7827 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.8559, allocations: 0 / 0.7827 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005198/0.8564, allocations: 129 kB / 0.7828 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.8564, allocations: 3.219 kB / 0.7828 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.833e-05/0.8565, allocations: 23.38 kB / 0.7829 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.8565, allocations: 7.469 kB / 0.7829 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.8565, allocations: 10.06 kB / 0.7829 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002377/0.8589, allocations: 1.414 MB / 0.7843 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006541/0.8595, allocations: 340.2 kB / 0.7846 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/0.8597, allocations: 13.25 kB / 0.7846 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007217/0.8605, allocations: 53.16 kB / 0.7847 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.8606, allocations: 53.89 kB / 0.7847 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.765e-05/0.8607, allocations: 32.52 kB / 0.7847 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001495/0.8622, allocations: 0.9387 MB / 0.7857 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.01e-07/0.8622, allocations: 4 kB / 0.7857 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002886/0.8651, allocations: 0.8107 MB / 0.7864 GB, free: 15.16 MB / 0.5919 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.001312/0.8664, allocations: 0.536 MB / 0.787 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00286/0.8693, allocations: 1.454 MB / 0.7884 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.8693, allocations: 0 / 0.7884 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000703/0.87, allocations: 401 kB / 0.7888 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/0.8733, allocations: 0.7964 MB / 0.7896 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/0.8778, allocations: 2.655 MB / 0.7921 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008323/0.8787, allocations: 1.264 MB / 0.7934 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004577/0.8791, allocations: 147 kB / 0.7935 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of SimCode: time 1.844e-06/0.8791, allocations: 0 / 0.7935 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of Templates: time 0.0432/0.9223, allocations: 28.62 MB / 0.8215 GB, free: 10.4 MB / 0.6075 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)