Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.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.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 108 kB / 16.37 MB, free: 6.477 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.001309/0.001308, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7716/0.7716, allocations: 132.2 MB / 423.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001203, allocations: 59.91 kB / 0.5032 GB, free: 10.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3298, allocations: 80.19 MB / 0.5815 GB, free: 27.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.03728/0.3671, allocations: 48.17 MB / 0.6286 GB, free: 13.94 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.3864, allocations: 13.38 MB / 0.6416 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.3885, allocations: 67.62 kB / 0.6417 GB, free: 468 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002443/0.391, allocations: 0.9143 MB / 0.6426 GB, free: 15.54 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Fluid/Actuators/Valves/Simplified/Thermostatic3WayValve.mo:34:3-38:63:writable] Warning: Conditional component 'vol' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005037/0.3961, allocations: 2.076 MB / 0.6446 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004146/0.4002, allocations: 1.856 MB / 0.6464 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004952/0.4052, allocations: 4.103 MB / 0.6504 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001902/0.4071, allocations: 1.48 MB / 0.6519 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003055/0.4102, allocations: 1.627 MB / 0.6535 GB, free: 4.371 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001528/0.4117, allocations: 1.186 MB / 0.6546 GB, free: 3.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002166/0.4119, allocations: 148 kB / 0.6548 GB, free: 3.035 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002665/0.4146, allocations: 1.47 MB / 0.6562 GB, free: 1.562 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000433/0.4151, allocations: 446.5 kB / 0.6566 GB, free: 1.125 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008257/0.4159, allocations: 0.8553 MB / 0.6575 GB, free: 272 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003559/0.4195, allocations: 2.945 MB / 0.6603 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4195, allocations: 0 / 0.6603 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.183e-06/0.4195, allocations: 0 / 0.6603 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.337e-05/0.4195, allocations: 0 / 0.6603 GB, free: 13.31 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003094/0.4226, allocations: 2.006 MB / 0.6623 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.4227, allocations: 8.031 kB / 0.6623 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008756/0.4314, allocations: 1.294 MB / 0.6636 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002991/0.4344, allocations: 1.424 MB / 0.665 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/0.4345, allocations: 74 kB / 0.665 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.4347, allocations: 99.91 kB / 0.6651 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005001/0.4397, allocations: 1.585 MB / 0.6667 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.4398, allocations: 7.938 kB / 0.6667 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.4399, allocations: 39.94 kB / 0.6667 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.4399, allocations: 24 kB / 0.6667 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007483/0.4474, allocations: 1.772 MB / 0.6685 GB, free: 4.828 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.01479/0.4622, allocations: 6.375 MB / 0.6747 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006641/0.4689, allocations: 1.387 MB / 0.676 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003189/0.4721, allocations: 0.7083 MB / 0.6767 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005731/0.4778, allocations: 3.932 MB / 0.6806 GB, free: 7.539 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.29e-05/0.4779, allocations: 38.56 kB / 0.6806 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 4.639e-06/0.478, allocations: 3.938 kB / 0.6806 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.009769/0.4877, allocations: 1.987 MB / 0.6826 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.4878, allocations: 55.41 kB / 0.6826 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/0.4898, allocations: 1.313 MB / 0.6839 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.4899, allocations: 33.7 kB / 0.6839 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005419/0.4904, allocations: 0.691 MB / 0.6846 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.4906, allocations: 153.8 kB / 0.6847 GB, free: 3.211 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003349/0.4909, allocations: 190.4 kB / 0.6849 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4911, allocations: 341.9 kB / 0.6853 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003347/0.4944, allocations: 0.7188 MB / 0.686 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003544/0.498, allocations: 1.071 MB / 0.687 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006273/0.5043, allocations: 1.62 MB / 0.6886 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/0.5043, allocations: 4 kB / 0.6886 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.007391/0.5117, allocations: 1.841 MB / 0.6904 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.5118, allocations: 14.5 kB / 0.6904 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/0.5118, allocations: 8 kB / 0.6904 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.919e-05/0.5118, allocations: 16 kB / 0.6904 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/0.5139, allocations: 391.7 kB / 0.6908 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.5e-05/0.5139, allocations: 27.86 kB / 0.6908 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/0.5162, allocations: 311.3 kB / 0.6911 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.5164, allocations: 55.97 kB / 0.6912 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003793/0.5202, allocations: 0.9895 MB / 0.6921 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00363/0.5238, allocations: 1.059 MB / 0.6932 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00647/0.5303, allocations: 1.628 MB / 0.6948 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.179e-05/0.5303, allocations: 4 kB / 0.6948 GB, free: 8.293 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.007419/0.5378, allocations: 1.829 MB / 0.6966 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.5378, allocations: 15.94 kB / 0.6966 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.5378, allocations: 12 kB / 0.6966 GB, free: 6.426 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.5379, allocations: 16 kB / 0.6966 GB, free: 6.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.5399, allocations: 387.7 kB / 0.697 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.122e-05/0.5399, allocations: 23.92 kB / 0.697 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/0.5423, allocations: 287.7 kB / 0.6973 GB, free: 5.727 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.5424, allocations: 55.91 kB / 0.6973 GB, free: 5.672 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * Array equations: 1 * Algorithm blocks: 0 * 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.0002905/0.5427, allocations: 236 kB / 0.6975 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002714/0.543, allocations: 138.2 kB / 0.6977 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007356/0.5503, allocations: 1.789 MB / 0.6994 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.5504, allocations: 7.984 kB / 0.6994 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.5504, allocations: 0 / 0.6994 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006466/0.5568, allocations: 1.564 MB / 0.701 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009208/0.5661, allocations: 3.011 MB / 0.7039 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.5661, allocations: 0 / 0.7039 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/0.5679, allocations: 279.7 kB / 0.7042 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.568, allocations: 4 kB / 0.7042 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.038e-05/0.568, allocations: 23.97 kB / 0.7042 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/0.568, allocations: 4 kB / 0.7042 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5681, allocations: 0 / 0.7042 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009783/0.5778, allocations: 2.456 MB / 0.7066 GB, free: 11.99 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007811/0.5787, allocations: 331 kB / 0.7069 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001911/0.5789, allocations: 12 kB / 0.7069 GB, free: 11.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/0.5807, allocations: 211.7 kB / 0.7071 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.5808, allocations: 44.31 kB / 0.7072 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-05/0.5809, allocations: 31.97 kB / 0.7072 GB, free: 11.35 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0016/0.5825, allocations: 0.8996 MB / 0.7081 GB, free: 10.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5825, allocations: 0 / 0.7081 GB, free: 10.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002659/0.5852, allocations: 0.776 MB / 0.7088 GB, free: 9.676 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (thermostatic3WayValve.vol.dynBal.U,thermostatic3WayValve.k_state,T_out.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * 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.001157/0.5864, allocations: 0.5318 MB / 0.7093 GB, free: 9.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01073/0.5971, allocations: 2.472 MB / 0.7118 GB, free: 6.695 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.5972, allocations: 0 / 0.7118 GB, free: 6.695 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003319/0.6005, allocations: 0.7483 MB / 0.7125 GB, free: 5.945 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002989/0.6035, allocations: 0.7247 MB / 0.7132 GB, free: 5.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006435/0.61, allocations: 2.708 MB / 0.7158 GB, free: 2.512 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007981/0.6108, allocations: 1.214 MB / 0.717 GB, free: 1.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001666/0.6125, allocations: 416.2 kB / 0.7174 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.6129, allocations: 123.4 kB / 0.7175 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/0.6129, allocations: 0 / 0.7175 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of Templates: time 0.06181/0.6747, allocations: 30.51 MB / 0.7473 GB, free: 2.617 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)