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.006126/0.006126, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001634/0.001634, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7823/0.7823, allocations: 132.2 MB / 422.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 62.88 kB / 0.5814 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1847, allocations: 80.21 MB / 0.6597 GB, free: 13.47 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.04643/0.2312, allocations: 48.17 MB / 0.7067 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01855/0.2497, allocations: 13.38 MB / 0.7198 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002167/0.2519, allocations: 67.62 kB / 0.7199 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002655/0.2546, allocations: 0.9125 MB / 0.7208 GB, free: 14.72 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.006605/0.2612, allocations: 2.132 MB / 0.7228 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005521/0.2668, allocations: 1.86 MB / 0.7247 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006049/0.2728, allocations: 4.116 MB / 0.7287 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.2752, allocations: 1.473 MB / 0.7301 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003693/0.2789, allocations: 1.664 MB / 0.7317 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001889/0.2808, allocations: 1.178 MB / 0.7329 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003823/0.2812, allocations: 152 kB / 0.733 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00332/0.2846, allocations: 1.466 MB / 0.7345 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004722/0.2851, allocations: 446.6 kB / 0.7349 GB, free: 200 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009702/0.286, allocations: 0.8554 MB / 0.7357 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003695/0.2897, allocations: 2.949 MB / 0.7386 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2898, allocations: 4 kB / 0.7386 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2898, allocations: 0 / 0.7386 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.079e-05/0.2898, allocations: 0 / 0.7386 GB, free: 12.38 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.003384/0.2932, allocations: 2.006 MB / 0.7406 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2932, allocations: 12.03 kB / 0.7406 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009921/0.3032, allocations: 1.286 MB / 0.7418 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002863/0.3061, allocations: 1.431 MB / 0.7432 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.276e-05/0.3062, allocations: 74 kB / 0.7433 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001892/0.3063, allocations: 92 kB / 0.7434 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005526/0.3119, allocations: 1.589 MB / 0.745 GB, free: 5.734 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.3119, allocations: 4 kB / 0.745 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/0.312, allocations: 36 kB / 0.745 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.3121, allocations: 20 kB / 0.745 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008452/0.3205, allocations: 1.775 MB / 0.7467 GB, free: 3.898 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.01557/0.3361, allocations: 6.383 MB / 0.753 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007784/0.3439, allocations: 1.387 MB / 0.7543 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003811/0.3478, allocations: 0.6985 MB / 0.755 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005519/0.3533, allocations: 3.948 MB / 0.7589 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.848e-05/0.3534, allocations: 34.56 kB / 0.7589 GB, free: 6.566 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=42): time 4.218e-06/0.3534, allocations: 4 kB / 0.7589 GB, free: 6.562 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42): time 0.01147/0.3649, allocations: 1.987 MB / 0.7608 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.365, allocations: 59.41 kB / 0.7609 GB, free: 4.496 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002197/0.3672, allocations: 1.305 MB / 0.7622 GB, free: 3.18 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.3673, allocations: 37.7 kB / 0.7622 GB, free: 3.137 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005705/0.3679, allocations: 0.6949 MB / 0.7629 GB, free: 2.434 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.3681, allocations: 157.8 kB / 0.763 GB, free: 2.277 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003515/0.3685, allocations: 194.3 kB / 0.7632 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3686, allocations: 337.9 kB / 0.7636 GB, free: 1.746 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003969/0.3726, allocations: 0.7188 MB / 0.7643 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00423/0.3768, allocations: 1.067 MB / 0.7653 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007389/0.3842, allocations: 1.624 MB / 0.7669 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.3843, allocations: 4 kB / 0.7669 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.008536/0.3928, allocations: 1.849 MB / 0.7687 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.3929, allocations: 8 kB / 0.7687 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.3929, allocations: 12 kB / 0.7687 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.3929, allocations: 16 kB / 0.7687 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00232/0.3952, allocations: 383.5 kB / 0.7691 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.34e-05/0.3953, allocations: 23.92 kB / 0.7691 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/0.3979, allocations: 319.2 kB / 0.7694 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.398, allocations: 51.97 kB / 0.7695 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004395/0.4024, allocations: 0.9895 MB / 0.7704 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004203/0.4067, allocations: 1.067 MB / 0.7715 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007294/0.414, allocations: 1.616 MB / 0.7731 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.498e-05/0.414, allocations: 4 kB / 0.7731 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.008612/0.4226, allocations: 1.841 MB / 0.7749 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.4227, allocations: 12.34 kB / 0.7749 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.4227, allocations: 12 kB / 0.7749 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.4227, allocations: 16 kB / 0.7749 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002264/0.425, allocations: 391.4 kB / 0.7753 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.65e-05/0.4251, allocations: 23.88 kB / 0.7753 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002755/0.4278, allocations: 291.6 kB / 0.7756 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.428, allocations: 55.89 kB / 0.7756 GB, free: 4.73 MB / 0.6075 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.0003779/0.4284, allocations: 232.9 kB / 0.7758 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004447/0.4288, allocations: 134.2 kB / 0.776 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00841/0.4372, allocations: 1.786 MB / 0.7777 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-05/0.4373, allocations: 15.98 kB / 0.7777 GB, free: 2.574 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4373, allocations: 0 / 0.7777 GB, free: 2.574 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007364/0.4447, allocations: 1.548 MB / 0.7792 GB, free: 0.9805 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/0.4555, allocations: 3.019 MB / 0.7822 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.4555, allocations: 0 / 0.7822 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/0.4576, allocations: 287.7 kB / 0.7825 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.376e-05/0.4576, allocations: 4 kB / 0.7825 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.738e-05/0.4577, allocations: 23.97 kB / 0.7825 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.226e-06/0.4577, allocations: 4 kB / 0.7825 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.4577, allocations: 0 / 0.7825 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/0.4693, allocations: 2.452 MB / 0.7849 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000902/0.4703, allocations: 331.1 kB / 0.7852 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000416/0.4707, allocations: 12 kB / 0.7852 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00228/0.473, allocations: 207.7 kB / 0.7854 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4731, allocations: 48.27 kB / 0.7855 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.063e-05/0.4732, allocations: 27.97 kB / 0.7855 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001673/0.4749, allocations: 0.9035 MB / 0.7864 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4749, allocations: 0 / 0.7864 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002554/0.4775, allocations: 0.7837 MB / 0.7871 GB, free: 8.734 MB / 0.6231 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.001348/0.4788, allocations: 0.5217 MB / 0.7876 GB, free: 8.227 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0123/0.4911, allocations: 2.472 MB / 0.7901 GB, free: 5.758 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.4912, allocations: 0 / 0.7901 GB, free: 5.758 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003834/0.495, allocations: 0.7489 MB / 0.7908 GB, free: 5.008 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003573/0.4986, allocations: 0.7224 MB / 0.7915 GB, free: 4.34 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007407/0.506, allocations: 2.704 MB / 0.7941 GB, free: 1.59 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009794/0.5071, allocations: 1.225 MB / 0.7953 GB, free: 344 kB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001815/0.5089, allocations: 406.5 kB / 0.7957 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004213/0.5093, allocations: 127.3 kB / 0.7958 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of SimCode: time 6.72e-07/0.5093, allocations: 0 / 0.7958 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of Templates: time 0.4001/0.9095, allocations: 30.71 MB / 0.8258 GB, free: 140.9 MB / 0.6387 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)