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.001054/0.001054, allocations: 103.2 kB / 16.35 MB, free: 5.828 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.001057/0.001057, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7911/0.7911, allocations: 132.2 MB / 423.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 60.03 kB / 0.5032 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.384, allocations: 80.18 MB / 0.5815 GB, free: 27.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.03907/0.4231, allocations: 48.17 MB / 0.6285 GB, free: 13.94 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01972/0.4429, allocations: 13.37 MB / 0.6416 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002919/0.4459, allocations: 71.62 kB / 0.6417 GB, free: 480 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002905/0.4488, allocations: 0.9143 MB / 0.6426 GB, free: 15.55 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.005908/0.4548, allocations: 2.08 MB / 0.6446 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005114/0.4599, allocations: 1.859 MB / 0.6464 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.006442/0.4663, allocations: 4.097 MB / 0.6504 GB, free: 7.512 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002824/0.4692, allocations: 1.488 MB / 0.6519 GB, free: 5.996 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004164/0.4734, allocations: 1.634 MB / 0.6535 GB, free: 4.363 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002262/0.4756, allocations: 1.175 MB / 0.6546 GB, free: 3.184 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004831/0.4761, allocations: 148 kB / 0.6547 GB, free: 3.039 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003698/0.4799, allocations: 1.463 MB / 0.6562 GB, free: 1.574 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007769/0.4806, allocations: 454.5 kB / 0.6566 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.4824, allocations: 0.8514 MB / 0.6574 GB, free: 280 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005232/0.4876, allocations: 2.945 MB / 0.6603 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4877, allocations: 0 / 0.6603 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.724e-06/0.4877, allocations: 0 / 0.6603 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.078e-05/0.4878, allocations: 0 / 0.6603 GB, free: 13.32 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.004193/0.492, allocations: 2.006 MB / 0.6623 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.492, allocations: 8.031 kB / 0.6623 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008892/0.5009, allocations: 1.298 MB / 0.6635 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003653/0.5046, allocations: 1.42 MB / 0.6649 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.5047, allocations: 70 kB / 0.665 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003545/0.5051, allocations: 107.8 kB / 0.6651 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005564/0.5107, allocations: 1.589 MB / 0.6667 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/0.5107, allocations: 3.938 kB / 0.6667 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/0.5109, allocations: 40 kB / 0.6667 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.886e-05/0.5109, allocations: 27.98 kB / 0.6667 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007494/0.5184, 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.01505/0.5335, allocations: 6.371 MB / 0.6747 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006482/0.54, allocations: 1.397 MB / 0.676 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003147/0.5431, allocations: 0.6965 MB / 0.6767 GB, free: 12 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005627/0.5488, allocations: 3.936 MB / 0.6806 GB, free: 7.543 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/0.5489, allocations: 38.56 kB / 0.6806 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 2.755e-06/0.5489, allocations: 0 / 0.6806 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.009789/0.5587, allocations: 1.983 MB / 0.6825 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.5587, allocations: 59.41 kB / 0.6826 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002292/0.561, allocations: 1.309 MB / 0.6839 GB, free: 4.113 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.5612, allocations: 37.7 kB / 0.6839 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006009/0.5618, allocations: 0.6871 MB / 0.6846 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/0.562, allocations: 161.8 kB / 0.6847 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004131/0.5624, allocations: 194.4 kB / 0.6849 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5626, allocations: 341.9 kB / 0.6852 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/0.5659, allocations: 0.7149 MB / 0.6859 GB, free: 1.961 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003621/0.5696, allocations: 1.071 MB / 0.687 GB, free: 0.7305 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006267/0.5758, allocations: 1.62 MB / 0.6886 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/0.5759, allocations: 4 kB / 0.6886 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.007513/0.5834, allocations: 1.841 MB / 0.6904 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.436e-05/0.5834, allocations: 12 kB / 0.6904 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.5835, allocations: 8.344 kB / 0.6904 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.923e-05/0.5835, allocations: 20 kB / 0.6904 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002023/0.5855, allocations: 391.3 kB / 0.6908 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.771e-05/0.5856, allocations: 19.94 kB / 0.6908 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002486/0.5881, allocations: 315.3 kB / 0.6911 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.5882, allocations: 52.05 kB / 0.6912 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003748/0.592, allocations: 0.9934 MB / 0.6921 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003571/0.5956, allocations: 1.067 MB / 0.6932 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006139/0.6017, allocations: 1.624 MB / 0.6948 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.456e-06/0.6018, 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.00739/0.6092, allocations: 1.829 MB / 0.6965 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.6092, allocations: 11.94 kB / 0.6966 GB, free: 6.441 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.6092, allocations: 12 kB / 0.6966 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.6092, allocations: 16 kB / 0.6966 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/0.6112, allocations: 399.6 kB / 0.697 GB, free: 6.023 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.207e-05/0.6113, allocations: 19.94 kB / 0.697 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/0.6136, allocations: 279.7 kB / 0.6972 GB, free: 5.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.6137, allocations: 59.95 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.0003178/0.6141, allocations: 239.9 kB / 0.6975 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003782/0.6145, allocations: 142.2 kB / 0.6977 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007312/0.6218, allocations: 1.781 MB / 0.6994 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/0.6218, allocations: 8 kB / 0.6994 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.6218, allocations: 0 / 0.6994 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006283/0.6281, allocations: 1.556 MB / 0.7009 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009213/0.6373, allocations: 3.015 MB / 0.7039 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.6374, allocations: 0 / 0.7039 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/0.6392, allocations: 291.7 kB / 0.7042 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.387e-05/0.6392, allocations: 0 / 0.7042 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.132e-05/0.6393, allocations: 23.98 kB / 0.7042 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.636e-06/0.6394, allocations: 4 kB / 0.7042 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.6394, allocations: 4 kB / 0.7042 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.6496, allocations: 2.448 MB / 0.7066 GB, free: 11.99 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007751/0.6504, allocations: 335 kB / 0.7069 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/0.6507, allocations: 16.03 kB / 0.7069 GB, free: 11.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00205/0.6528, allocations: 215.7 kB / 0.7071 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.606e-05/0.6529, allocations: 40.33 kB / 0.7072 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.705e-05/0.653, allocations: 31.97 kB / 0.7072 GB, free: 11.35 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001733/0.6547, allocations: 0.9034 MB / 0.7081 GB, free: 10.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/0.6547, allocations: 0 / 0.7081 GB, free: 10.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002537/0.6573, allocations: 0.776 MB / 0.7088 GB, free: 9.672 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.001287/0.6586, allocations: 0.5248 MB / 0.7093 GB, free: 9.164 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0109/0.6695, allocations: 2.472 MB / 0.7118 GB, free: 6.699 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.6695, allocations: 256 / 0.7118 GB, free: 6.699 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003332/0.6728, allocations: 0.752 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.003429/0.6763, allocations: 0.7167 MB / 0.7132 GB, free: 5.281 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006661/0.683, allocations: 2.712 MB / 0.7158 GB, free: 2.52 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009879/0.684, allocations: 1.214 MB / 0.717 GB, free: 1.277 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001842/0.6858, allocations: 418.4 kB / 0.7174 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.6863, allocations: 123.4 kB / 0.7175 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of SimCode: time 7.91e-07/0.6863, allocations: 0 / 0.7175 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of Templates: time 0.05079/0.7371, allocations: 30.53 MB / 0.7474 GB, free: 2.602 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 gbode -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)