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.0007472/0.0007473, allocations: 91.53 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008194/0.0008194, allocations: 179.8 kB / 16.92 MB, free: 6.652 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.309/1.309, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9162/0.9162, allocations: 135.3 MB / 427.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003575, allocations: 8.781 kB / 0.5082 GB, free: 4.762 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1731, allocations: 82.31 MB / 0.5886 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.3343/0.5075, allocations: 46.83 MB / 0.6344 GB, free: 26.4 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01844/0.5259, allocations: 13.3 MB / 0.6473 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002791/0.5288, allocations: 60.66 kB / 0.6474 GB, free: 17.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.5313, allocations: 0.776 MB / 0.6482 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.005602/0.5369, allocations: 1.935 MB / 0.65 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004364/0.5413, allocations: 1.643 MB / 0.6516 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.008445/0.5497, allocations: 5.514 MB / 0.657 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003267/0.5531, allocations: 1.212 MB / 0.6582 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00462/0.5577, allocations: 1.349 MB / 0.6595 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003284/0.561, allocations: 1.15 MB / 0.6607 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005845/0.5617, allocations: 60.45 kB / 0.6607 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005366/0.5671, allocations: 1.37 MB / 0.6621 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009615/0.5681, allocations: 350.3 kB / 0.6624 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002319/0.5704, allocations: 0.767 MB / 0.6631 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006204/0.5767, allocations: 2.18 MB / 0.6653 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.5767, allocations: 4 kB / 0.6653 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.905e-06/0.5767, allocations: 3.938 kB / 0.6653 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001146/0.5768, allocations: 0.5312 kB / 0.6653 GB, free: 9.484 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.006417/0.5833, allocations: 1.713 MB / 0.6669 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.5833, allocations: 14.5 kB / 0.667 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01649/0.5998, allocations: 1.629 MB / 0.6685 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004902/0.6048, allocations: 1.422 MB / 0.6699 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005435/0.6054, allocations: 137.4 kB / 0.6701 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004465/0.6058, allocations: 97 kB / 0.6702 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00683/0.6127, allocations: 1.729 MB / 0.6719 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.15e-05/0.6127, allocations: 5.219 kB / 0.6719 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001632/0.6129, allocations: 40.81 kB / 0.6719 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.627e-05/0.6129, allocations: 22.12 kB / 0.6719 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009653/0.6226, allocations: 2.062 MB / 0.6739 GB, free: 6.227 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.01846/0.6411, allocations: 6.67 MB / 0.6804 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008327/0.6495, allocations: 1.672 MB / 0.6821 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004148/0.6536, allocations: 0.8302 MB / 0.6829 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006543/0.6602, allocations: 3.961 MB / 0.6868 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.6603, allocations: 41.09 kB / 0.6868 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008346/0.6611, allocations: 57.03 kB / 0.6868 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=43): time 5.069e-06/0.6612, allocations: 0 / 0.6868 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.01246/0.6736, allocations: 2.388 MB / 0.6892 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.6737, allocations: 55.94 kB / 0.6892 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003212/0.677, allocations: 1.3 MB / 0.6905 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000178/0.6771, allocations: 36.95 kB / 0.6905 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007626/0.6779, allocations: 0.6946 MB / 0.6912 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.6782, allocations: 153.8 kB / 0.6914 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.6784, allocations: 76.58 kB / 0.6914 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.6785, allocations: 345.5 kB / 0.6918 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004263/0.6828, allocations: 0.8496 MB / 0.6926 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004586/0.6874, allocations: 1.216 MB / 0.6938 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008006/0.6954, allocations: 1.883 MB / 0.6956 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.426e-05/0.6955, allocations: 3.5 kB / 0.6956 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.009478/0.705, allocations: 2.13 MB / 0.6977 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003393/0.7054, allocations: 406 kB / 0.6981 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.7054, allocations: 11.69 kB / 0.6981 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.746e-05/0.7054, allocations: 15.81 kB / 0.6981 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/0.708, allocations: 456.6 kB / 0.6986 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-05/0.708, allocations: 28.36 kB / 0.6986 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/0.7113, allocations: 367.3 kB / 0.6989 GB, free: 7.344 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002011/0.7115, allocations: 51.77 kB / 0.699 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.7115, allocations: 7.688 kB / 0.699 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008668/0.7202, allocations: 1.977 MB / 0.7009 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.392e-05/0.7202, allocations: 12.19 kB / 0.7009 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.7203, allocations: 17.38 kB / 0.7009 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002361/0.7226, allocations: 456.4 kB / 0.7014 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/0.7227, allocations: 24.58 kB / 0.7014 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003042/0.7257, allocations: 340.1 kB / 0.7017 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.7259, allocations: 52.38 kB / 0.7018 GB, free: 6.188 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.001064/0.727, allocations: 438.9 kB / 0.7022 GB, free: 5.84 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000489/0.7275, allocations: 137.2 kB / 0.7023 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008974/0.7365, allocations: 2.052 MB / 0.7043 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/0.7365, allocations: 8 kB / 0.7043 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.7366, allocations: 0 / 0.7043 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007751/0.7443, allocations: 1.826 MB / 0.7061 GB, free: 2.406 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.01173/0.7561, allocations: 3.287 MB / 0.7093 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.7561, allocations: 4 kB / 0.7093 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002254/0.7584, allocations: 343.6 kB / 0.7097 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.479e-05/0.7584, allocations: 4 kB / 0.7097 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.7585, allocations: 23.97 kB / 0.7097 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.7585, allocations: 7.938 kB / 0.7097 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.7586, allocations: 4 kB / 0.7097 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01281/0.7714, allocations: 2.831 MB / 0.7125 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/0.7727, allocations: 331.2 kB / 0.7128 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005875/0.7733, allocations: 15.98 kB / 0.7128 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002828/0.7761, allocations: 303.5 kB / 0.7131 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.7763, allocations: 48.25 kB / 0.7131 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.7764, allocations: 31.97 kB / 0.7132 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002036/0.7784, allocations: 0.8879 MB / 0.714 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.41e-07/0.7785, allocations: 4 kB / 0.714 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003742/0.7822, allocations: 0.7682 MB / 0.7148 GB, free: 9.387 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.001774/0.784, allocations: 0.5103 MB / 0.7153 GB, free: 8.887 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01377/0.7978, allocations: 2.89 MB / 0.7181 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.7979, allocations: 3.938 kB / 0.7181 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004258/0.8021, allocations: 0.8849 MB / 0.719 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004664/0.8068, allocations: 0.6786 MB / 0.7196 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008751/0.8156, allocations: 3.472 MB / 0.723 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.8166, allocations: 1.218 MB / 0.7242 GB, free: 15.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006702/0.8173, allocations: 131.4 kB / 0.7243 GB, free: 15.55 MB / 0.545 GB Notification: Performance of SimCode: time 9.31e-07/0.8173, allocations: 0 / 0.7243 GB, free: 15.55 MB / 0.545 GB Notification: Performance of Templates: time 0.04082/0.8582, allocations: 27.45 MB / 0.7511 GB, free: 4.355 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)