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.001338/0.001338, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001462/0.001462, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.314/1.314, 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.7611/0.7611, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 66.11 kB / 0.582 GB, free: 23.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.162, allocations: 80.22 MB / 0.6604 GB, free: 10.23 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pump.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.05251/0.2146, allocations: 48.16 MB / 0.7074 GB, free: 9.891 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01964/0.2343, allocations: 13.38 MB / 0.7205 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002374/0.2367, allocations: 67.62 kB / 0.7205 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002899/0.2396, allocations: 0.9086 MB / 0.7214 GB, free: 11.5 MB / 0.5606 GB [/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.006051/0.2457, allocations: 2.083 MB / 0.7234 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00477/0.2505, allocations: 1.853 MB / 0.7253 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.005887/0.2564, allocations: 4.108 MB / 0.7293 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00264/0.259, allocations: 1.477 MB / 0.7307 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004061/0.2631, allocations: 1.663 MB / 0.7323 GB, free: 284 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002155/0.2653, allocations: 1.182 MB / 0.7335 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004606/0.2658, allocations: 152 kB / 0.7336 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.2692, allocations: 1.455 MB / 0.735 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006902/0.2699, allocations: 454.5 kB / 0.7355 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.2715, allocations: 0.8514 MB / 0.7363 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005227/0.2767, allocations: 2.952 MB / 0.7392 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2768, allocations: 0 / 0.7392 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.903e-06/0.2768, allocations: 0 / 0.7392 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.305e-05/0.2769, allocations: 0 / 0.7392 GB, free: 9.223 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.004428/0.2813, allocations: 2.013 MB / 0.7412 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.2814, allocations: 11.97 kB / 0.7412 GB, free: 7.145 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009674/0.291, allocations: 1.29 MB / 0.7424 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003275/0.2943, allocations: 1.42 MB / 0.7438 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.051e-05/0.2944, allocations: 77.94 kB / 0.7439 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002636/0.2947, allocations: 100 kB / 0.744 GB, free: 4.203 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005774/0.3005, allocations: 1.585 MB / 0.7455 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.3005, allocations: 0 / 0.7455 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.3007, allocations: 36 kB / 0.7456 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.3007, allocations: 24 kB / 0.7456 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008501/0.3092, allocations: 1.775 MB / 0.7473 GB, free: 0.7383 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.3437/0.653, allocations: 6.373 MB / 0.7536 GB, free: 81.53 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007519/0.6605, allocations: 1.386 MB / 0.7549 GB, free: 81.27 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003828/0.6644, allocations: 0.6941 MB / 0.7556 GB, free: 81.14 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005239/0.6696, allocations: 3.931 MB / 0.7594 GB, free: 77.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.6697, allocations: 38.02 kB / 0.7595 GB, free: 77.66 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=42): time 2.274e-06/0.6697, allocations: 1.203 kB / 0.7595 GB, free: 77.66 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.01185/0.6815, allocations: 1.99 MB / 0.7614 GB, free: 77.29 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.6816, allocations: 59.91 kB / 0.7615 GB, free: 77.22 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/0.6839, allocations: 1.313 MB / 0.7627 GB, free: 76.71 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.923e-05/0.6841, allocations: 40.81 kB / 0.7628 GB, free: 76.68 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005065/0.6846, allocations: 0.6895 MB / 0.7635 GB, free: 76.16 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.6847, allocations: 152.2 kB / 0.7636 GB, free: 76.05 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003542/0.6851, allocations: 194.9 kB / 0.7638 GB, free: 75.96 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.988e-05/0.6852, allocations: 339.5 kB / 0.7641 GB, free: 75.64 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003839/0.689, allocations: 0.7184 MB / 0.7648 GB, free: 75.51 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003832/0.6929, allocations: 1.07 MB / 0.7659 GB, free: 74.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006834/0.6997, allocations: 1.622 MB / 0.7674 GB, free: 74.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.6998, allocations: 3.406 kB / 0.7674 GB, free: 74.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.008326/0.7081, allocations: 1.838 MB / 0.7692 GB, free: 73.21 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.7081, allocations: 9.75 kB / 0.7692 GB, free: 73.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/0.7082, allocations: 14.23 kB / 0.7693 GB, free: 73.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.641e-05/0.7082, allocations: 15.25 kB / 0.7693 GB, free: 73.21 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002144/0.7104, allocations: 389.7 kB / 0.7696 GB, free: 73.08 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.59e-05/0.7104, allocations: 23.92 kB / 0.7697 GB, free: 73.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/0.7129, allocations: 319.5 kB / 0.77 GB, free: 72.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.7131, allocations: 55.41 kB / 0.77 GB, free: 72.89 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004068/0.7171, allocations: 0.9873 MB / 0.771 GB, free: 72.36 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003827/0.721, allocations: 1.068 MB / 0.772 GB, free: 71.55 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006758/0.7278, allocations: 1.625 MB / 0.7736 GB, free: 70.48 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.776e-05/0.7278, allocations: 4.938 kB / 0.7736 GB, free: 70.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.008142/0.736, allocations: 1.838 MB / 0.7754 GB, free: 69.59 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.736, allocations: 11.03 kB / 0.7754 GB, free: 69.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/0.7361, allocations: 11 kB / 0.7754 GB, free: 69.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.7361, allocations: 15.12 kB / 0.7755 GB, free: 69.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/0.7383, allocations: 394.2 kB / 0.7758 GB, free: 69.45 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.853e-05/0.7383, allocations: 27.3 kB / 0.7759 GB, free: 69.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/0.7411, allocations: 280.5 kB / 0.7761 GB, free: 69.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/0.7414, allocations: 55.03 kB / 0.7762 GB, free: 69.29 MB / 0.5762 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.0005196/0.7419, allocations: 235.2 kB / 0.7764 GB, free: 69.07 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000729/0.7426, allocations: 133.9 kB / 0.7765 GB, free: 69 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008911/0.7515, allocations: 1.781 MB / 0.7783 GB, free: 68.09 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.485e-05/0.7516, allocations: 16.67 kB / 0.7783 GB, free: 68.08 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.7517, allocations: 1.281 kB / 0.7783 GB, free: 68.08 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007093/0.7588, allocations: 1.551 MB / 0.7798 GB, free: 67.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.7695, allocations: 3.028 MB / 0.7828 GB, free: 65.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.7695, allocations: 3.938 kB / 0.7828 GB, free: 65.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/0.7715, allocations: 289 kB / 0.783 GB, free: 65.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-05/0.7715, allocations: 0.5625 kB / 0.783 GB, free: 65.09 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-05/0.7716, allocations: 27.91 kB / 0.7831 GB, free: 65.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-05/0.7716, allocations: 10.61 kB / 0.7831 GB, free: 65.06 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.7716, allocations: 3.969 kB / 0.7831 GB, free: 65.06 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/0.7825, allocations: 2.443 MB / 0.7855 GB, free: 63.78 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008671/0.7834, allocations: 332.3 kB / 0.7858 GB, free: 63.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004747/0.7839, allocations: 14.44 kB / 0.7858 GB, free: 63.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002259/0.7862, allocations: 221.9 kB / 0.786 GB, free: 63.38 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.7863, allocations: 39.64 kB / 0.786 GB, free: 63.36 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.7864, allocations: 26.59 kB / 0.7861 GB, free: 63.34 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001869/0.7883, allocations: 0.9003 MB / 0.787 GB, free: 62.85 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.9e-07/0.7883, allocations: 0 / 0.787 GB, free: 62.85 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00304/0.7914, allocations: 0.7771 MB / 0.7877 GB, free: 62.26 MB / 0.5762 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.001479/0.7929, allocations: 0.5201 MB / 0.7882 GB, free: 61.83 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01194/0.8048, allocations: 2.476 MB / 0.7906 GB, free: 59.36 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/0.8049, allocations: 0 / 0.7906 GB, free: 59.36 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003662/0.8086, allocations: 0.756 MB / 0.7914 GB, free: 58.61 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003641/0.8123, allocations: 0.7175 MB / 0.7921 GB, free: 57.96 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007444/0.8197, allocations: 2.755 MB / 0.7948 GB, free: 55.16 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007634/0.8205, allocations: 1.214 MB / 0.796 GB, free: 53.92 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006154/0.8212, allocations: 143.3 kB / 0.7961 GB, free: 53.78 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/0.8212, allocations: 0 / 0.7961 GB, free: 53.78 MB / 0.5762 GB Notification: Performance of Templates: time 0.0322/0.8534, allocations: 28.16 MB / 0.8236 GB, free: 25.86 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 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)