Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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_dev_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.0008678/0.0008679, allocations: 91.61 kB / 15.36 MB, free: 0.7383 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.008941/0.008941, allocations: 170.4 kB / 16.26 MB, free: 6.613 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.493/1.493, allocations: 223.3 MB / 240.3 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.014/1.014, allocations: 135.3 MB / 426.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000493/0.0004932, allocations: 9.719 kB / 0.5076 GB, free: 4.781 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2391, allocations: 82.31 MB / 0.588 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.3926/0.6318, allocations: 46.83 MB / 0.6337 GB, free: 26.44 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02169/0.6536, allocations: 13.3 MB / 0.6467 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00416/0.6578, allocations: 58.47 kB / 0.6468 GB, free: 17.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003627/0.6615, allocations: 0.7713 MB / 0.6475 GB, free: 16.61 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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.007142/0.6687, allocations: 1.937 MB / 0.6494 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005085/0.6738, allocations: 1.648 MB / 0.651 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.007081/0.6808, allocations: 5.496 MB / 0.6564 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00278/0.6837, allocations: 1.226 MB / 0.6576 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003935/0.6876, allocations: 1.342 MB / 0.6589 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.6905, allocations: 1.155 MB / 0.66 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006175/0.6912, allocations: 56.88 kB / 0.6601 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004619/0.6958, allocations: 1.375 MB / 0.6614 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.6968, allocations: 359.8 kB / 0.6618 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002591/0.6995, allocations: 0.7602 MB / 0.6625 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.008261/0.7077, allocations: 2.813 MB / 0.6652 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.7078, allocations: 0 / 0.6652 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.647e-06/0.7078, allocations: 0 / 0.6652 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001527/0.708, allocations: 0 / 0.6652 GB, free: 9.172 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.006345/0.7143, allocations: 1.722 MB / 0.6669 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/0.7144, allocations: 8.719 kB / 0.6669 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01147/0.7259, allocations: 1.629 MB / 0.6685 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004892/0.7308, allocations: 1.422 MB / 0.6699 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005093/0.7314, allocations: 134.2 kB / 0.67 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005452/0.7319, allocations: 100.5 kB / 0.6701 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007723/0.7397, allocations: 1.733 MB / 0.6718 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/0.7398, allocations: 1.312 kB / 0.6718 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001697/0.74, allocations: 37.22 kB / 0.6719 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.895e-05/0.74, allocations: 21.94 kB / 0.6719 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009679/0.7497, allocations: 2.065 MB / 0.6739 GB, free: 5.91 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.02102/0.7708, allocations: 6.664 MB / 0.6804 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008357/0.7792, allocations: 1.664 MB / 0.682 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00415/0.7834, allocations: 0.8371 MB / 0.6829 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007545/0.7909, allocations: 3.958 MB / 0.6867 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/0.791, allocations: 41.25 kB / 0.6868 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001013/0.7921, allocations: 57.44 kB / 0.6868 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=43): time 5.48e-06/0.7921, allocations: 0 / 0.6868 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.01222/0.8043, allocations: 2.384 MB / 0.6891 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.8044, allocations: 56.31 kB / 0.6892 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003492/0.8079, allocations: 1.3 MB / 0.6905 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001803/0.8081, allocations: 37.45 kB / 0.6905 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008546/0.809, allocations: 0.6861 MB / 0.6912 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003311/0.8093, allocations: 170.7 kB / 0.6913 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.8095, allocations: 76.39 kB / 0.6914 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.8097, allocations: 333.3 kB / 0.6917 GB, free: 11 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004239/0.8139, allocations: 0.8574 MB / 0.6926 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004671/0.8186, allocations: 1.211 MB / 0.6937 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008247/0.8269, allocations: 1.888 MB / 0.6956 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.609e-05/0.827, allocations: 7.562 kB / 0.6956 GB, free: 8.707 MB / 0.5137 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.01039/0.8374, allocations: 2.117 MB / 0.6977 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005066/0.8379, allocations: 416.5 kB / 0.6981 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.912e-05/0.838, allocations: 14.98 kB / 0.6981 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.706e-05/0.8381, allocations: 16.5 kB / 0.6981 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002592/0.8407, allocations: 456.9 kB / 0.6985 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.473e-05/0.8407, allocations: 23.5 kB / 0.6986 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003679/0.8444, allocations: 372.1 kB / 0.6989 GB, free: 6.941 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002926/0.8447, allocations: 55 kB / 0.699 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.8448, allocations: 4.188 kB / 0.699 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009379/0.8541, allocations: 1.963 MB / 0.7009 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.713e-05/0.8542, allocations: 16.28 kB / 0.7009 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.032e-05/0.8543, allocations: 24.48 kB / 0.7009 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00247/0.8568, allocations: 460.5 kB / 0.7014 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.53e-05/0.8568, allocations: 20.66 kB / 0.7014 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00341/0.8602, allocations: 336.9 kB / 0.7017 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002614/0.8605, allocations: 58.06 kB / 0.7018 GB, free: 5.785 MB / 0.5137 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 (102): * Single equations (assignments): 101 * 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.001484/0.862, allocations: 432.8 kB / 0.7022 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006926/0.8627, allocations: 136 kB / 0.7023 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009375/0.8721, allocations: 2.049 MB / 0.7043 GB, free: 3.688 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-05/0.8722, allocations: 15.98 kB / 0.7043 GB, free: 3.672 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.8722, allocations: 0 / 0.7043 GB, free: 3.672 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007985/0.8802, allocations: 1.822 MB / 0.7061 GB, free: 1.801 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 postOpt removeSimpleEquations (simulation): time 0.01296/0.8932, allocations: 3.287 MB / 0.7093 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.8933, allocations: 0 / 0.7093 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002179/0.8955, allocations: 355.6 kB / 0.7096 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.466e-05/0.8955, allocations: 4 kB / 0.7096 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.8956, allocations: 15.98 kB / 0.7097 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.558e-05/0.8956, allocations: 4 kB / 0.7097 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.8956, allocations: 0 / 0.7097 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0129/0.9085, allocations: 2.843 MB / 0.7124 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.91, allocations: 335.3 kB / 0.7128 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006592/0.9107, allocations: 11.94 kB / 0.7128 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002925/0.9136, allocations: 307.5 kB / 0.7131 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.9138, allocations: 40.33 kB / 0.7131 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.9139, allocations: 31.97 kB / 0.7131 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002552/0.9165, allocations: 0.8996 MB / 0.714 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.01e-07/0.9165, allocations: 0 / 0.714 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0054/0.9219, allocations: 0.7721 MB / 0.7148 GB, free: 8.77 MB / 0.5294 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 (56): * Single equations (assignments): 48 * 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.002389/0.9243, allocations: 0.4934 MB / 0.7153 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01393/0.9382, allocations: 2.894 MB / 0.7181 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/0.9383, allocations: 0.6875 kB / 0.7181 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004202/0.9425, allocations: 0.8847 MB / 0.7189 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006108/0.9487, allocations: 0.6795 MB / 0.7196 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/0.961, allocations: 3.416 MB / 0.7229 GB, free: 400 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/0.9627, allocations: 1.214 MB / 0.7241 GB, free: 15.14 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003199/0.966, allocations: 432.9 kB / 0.7245 GB, free: 14.74 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000717/0.9667, allocations: 119.4 kB / 0.7247 GB, free: 14.62 MB / 0.545 GB Notification: Performance of SimCode: time 1.603e-06/0.9667, allocations: 0 / 0.7247 GB, free: 14.62 MB / 0.545 GB Notification: Performance of Templates: time 0.06406/1.031, allocations: 29.14 MB / 0.7531 GB, free: 1.855 MB / 0.5606 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)