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.001051/0.001051, allocations: 106 kB / 16.35 MB, free: 5.824 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.001185/0.001185, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.23/1.23, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.739/0.739, allocations: 135.1 MB / 426.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 67.91 kB / 0.5068 GB, free: 7.664 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3012, allocations: 80.91 MB / 0.5858 GB, free: 25.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.04076/0.342, allocations: 54.19 MB / 0.6387 GB, free: 4.246 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01766/0.3597, allocations: 13.87 MB / 0.6522 GB, free: 6.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002016/0.3617, allocations: 75.56 kB / 0.6523 GB, free: 6.266 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002369/0.3642, allocations: 0.9569 MB / 0.6532 GB, free: 5.305 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004804/0.369, allocations: 2.157 MB / 0.6553 GB, free: 3.137 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004279/0.3733, allocations: 2.011 MB / 0.6573 GB, free: 1.141 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005129/0.3784, allocations: 4.438 MB / 0.6616 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001981/0.3804, allocations: 1.575 MB / 0.6632 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003491/0.3839, allocations: 1.795 MB / 0.6649 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.3855, allocations: 1.276 MB / 0.6662 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002139/0.3857, allocations: 164 kB / 0.6663 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.3883, allocations: 1.42 MB / 0.6677 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004528/0.3888, allocations: 486.4 kB / 0.6682 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009495/0.3897, allocations: 0.9252 MB / 0.6691 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004054/0.3938, allocations: 3.081 MB / 0.6721 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3938, allocations: 3.938 kB / 0.6721 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3938, allocations: 0 / 0.6721 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.971e-05/0.3939, allocations: 0 / 0.6721 GB, free: 1.93 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.00336/0.3972, allocations: 2.154 MB / 0.6742 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.3973, allocations: 13.09 kB / 0.6742 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/0.3989, allocations: 370.4 kB / 0.6746 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00256/0.4015, allocations: 1.486 MB / 0.676 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.659e-05/0.4016, allocations: 78 kB / 0.6761 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.4017, allocations: 108 kB / 0.6762 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.4037, allocations: 1.203 MB / 0.6774 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.4037, allocations: 0 / 0.6774 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.958e-05/0.4038, allocations: 47.94 kB / 0.6774 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.4039, allocations: 24 kB / 0.6774 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002099/0.406, allocations: 0.9719 MB / 0.6784 GB, free: 11.33 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.006307/0.4123, allocations: 5.129 MB / 0.6834 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.4136, allocations: 0.6162 MB / 0.684 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.4142, allocations: 294.4 kB / 0.6843 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003699/0.4179, allocations: 2.982 MB / 0.6872 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006889/0.4186, allocations: 345.2 kB / 0.6875 GB, free: 1.316 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.214e-06/0.4186, allocations: 3.938 kB / 0.6875 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.001884/0.4205, allocations: 0.8604 MB / 0.6884 GB, free: 452 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.4205, allocations: 59.84 kB / 0.6884 GB, free: 380 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001763/0.4223, allocations: 1.388 MB / 0.6898 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.544e-05/0.4224, allocations: 41.7 kB / 0.6898 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005402/0.4229, allocations: 0.7267 MB / 0.6905 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.4231, allocations: 201.3 kB / 0.6907 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/0.4234, allocations: 206.3 kB / 0.6909 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4235, allocations: 349.9 kB / 0.6913 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007318/0.4242, allocations: 320.7 kB / 0.6916 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009711/0.4252, allocations: 0.6764 MB / 0.6922 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.4268, allocations: 0.9813 MB / 0.6932 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4268, allocations: 0 / 0.6932 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002201/0.429, allocations: 1.167 MB / 0.6943 GB, free: 9.961 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.4291, allocations: 33.7 kB / 0.6944 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.4291, allocations: 12 kB / 0.6944 GB, free: 9.91 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.4291, allocations: 19.94 kB / 0.6944 GB, free: 9.891 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007996/0.4299, allocations: 235.9 kB / 0.6946 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.139e-05/0.43, allocations: 19.94 kB / 0.6946 GB, free: 9.641 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009742/0.4309, allocations: 151.4 kB / 0.6948 GB, free: 9.492 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.241e-05/0.431, allocations: 63.95 kB / 0.6948 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001069/0.4321, allocations: 0.5995 MB / 0.6954 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009534/0.4331, allocations: 0.6686 MB / 0.6961 GB, free: 8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001504/0.4346, allocations: 0.9813 MB / 0.697 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.642e-06/0.4346, allocations: 4 kB / 0.697 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002166/0.4368, allocations: 1.159 MB / 0.6982 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.4368, allocations: 41.69 kB / 0.6982 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.4368, allocations: 12 kB / 0.6982 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.4369, allocations: 16 kB / 0.6982 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007747/0.4376, allocations: 231.6 kB / 0.6985 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.4377, allocations: 23.92 kB / 0.6985 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009211/0.4386, allocations: 120 kB / 0.6986 GB, free: 5.246 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.343e-05/0.4387, allocations: 59.98 kB / 0.6986 GB, free: 5.188 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.0002086/0.4389, allocations: 243.8 kB / 0.6989 GB, free: 4.945 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.4391, allocations: 142.2 kB / 0.699 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00212/0.4412, allocations: 1.135 MB / 0.7001 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.4412, allocations: 8 kB / 0.7001 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4413, allocations: 0 / 0.7001 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001402/0.4427, allocations: 0.8937 MB / 0.701 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003165/0.4458, allocations: 2.201 MB / 0.7032 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4459, allocations: 0 / 0.7032 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005385/0.4464, allocations: 123.8 kB / 0.7033 GB, free: 356 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4464, allocations: 4 kB / 0.7033 GB, free: 352 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.604e-05/0.4465, allocations: 19.98 kB / 0.7033 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.4465, allocations: 4 kB / 0.7033 GB, free: 328 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4465, allocations: 4.125 kB / 0.7033 GB, free: 324 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002319/0.4488, allocations: 1.426 MB / 0.7047 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004578/0.4493, allocations: 331 kB / 0.705 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.4495, allocations: 16 kB / 0.705 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000689/0.4501, allocations: 47.95 kB / 0.7051 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.4503, allocations: 52.44 kB / 0.7051 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.253e-05/0.4503, allocations: 31.97 kB / 0.7052 GB, free: 14.36 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001248/0.4516, allocations: 0.9445 MB / 0.7061 GB, free: 13.42 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/0.4516, allocations: 4 kB / 0.7061 GB, free: 13.42 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001846/0.4534, allocations: 0.8147 MB / 0.7069 GB, free: 12.6 MB / 0.545 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.0009707/0.4544, allocations: 0.5432 MB / 0.7074 GB, free: 12.08 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002635/0.4571, allocations: 1.452 MB / 0.7088 GB, free: 10.61 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4571, allocations: 0 / 0.7088 GB, free: 10.61 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007321/0.4578, allocations: 408.7 kB / 0.7092 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/0.4605, allocations: 0.7948 MB / 0.71 GB, free: 9.465 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.4642, allocations: 2.597 MB / 0.7125 GB, free: 6.824 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000777/0.4649, allocations: 1.266 MB / 0.7138 GB, free: 5.527 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001181/0.4661, allocations: 412.6 kB / 0.7142 GB, free: 5.129 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002591/0.4664, allocations: 131.4 kB / 0.7143 GB, free: 5.004 MB / 0.545 GB Notification: Performance of SimCode: time 3.31e-07/0.4664, allocations: 0 / 0.7143 GB, free: 5.004 MB / 0.545 GB Notification: Performance of Templates: time 0.04539/0.5118, allocations: 31.95 MB / 0.7455 GB, free: 5.395 MB / 0.5762 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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)