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-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_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.0009558/0.0009558, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0008877/0.0008879, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.2/1.2, allocations: 223.2 MB / 239.9 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8626/0.8626, allocations: 135.2 MB / 426.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003036, allocations: 12 kB / 0.5068 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1443, allocations: 82.31 MB / 0.5872 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.2857/0.43, allocations: 40.22 MB / 0.6265 GB, free: 31.42 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01403/0.4441, allocations: 11.61 MB / 0.6378 GB, free: 23.28 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002218/0.4463, allocations: 52.56 kB / 0.6379 GB, free: 23.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.4486, allocations: 0.7594 MB / 0.6386 GB, free: 22.83 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.005154/0.4537, allocations: 2.058 MB / 0.6406 GB, free: 21.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004321/0.4581, allocations: 1.823 MB / 0.6424 GB, free: 20.66 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003595/0.4617, allocations: 2.386 MB / 0.6447 GB, free: 19.41 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001324/0.463, allocations: 1.094 MB / 0.6458 GB, free: 18.99 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.4648, allocations: 1.11 MB / 0.6469 GB, free: 18.46 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007791/0.4656, allocations: 0.7562 MB / 0.6476 GB, free: 18.14 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.4657, allocations: 58.16 kB / 0.6477 GB, free: 18.14 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00228/0.468, allocations: 1.112 MB / 0.6488 GB, free: 17.88 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002936/0.4683, allocations: 323.2 kB / 0.6491 GB, free: 17.73 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003147/0.4686, allocations: 339.1 kB / 0.6494 GB, free: 17.54 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002089/0.4707, allocations: 2.12 MB / 0.6515 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.4707, allocations: 2.688 kB / 0.6515 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4707, allocations: 0 / 0.6515 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.576e-05/0.4707, allocations: 0 / 0.6515 GB, free: 17.04 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.002433/0.4732, allocations: 1.738 MB / 0.6532 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.4732, allocations: 7.75 kB / 0.6532 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009132/0.4824, allocations: 1.627 MB / 0.6548 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/0.485, allocations: 1.332 MB / 0.6561 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003657/0.4854, allocations: 142.8 kB / 0.6562 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.4855, allocations: 96.84 kB / 0.6563 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005166/0.4907, allocations: 1.73 MB / 0.658 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.4907, allocations: 3.938 kB / 0.658 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.4908, allocations: 39.25 kB / 0.658 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.4909, allocations: 21.25 kB / 0.6581 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007961/0.4988, allocations: 2.076 MB / 0.6601 GB, free: 13.84 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.01397/0.5128, allocations: 6.757 MB / 0.6667 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007209/0.5201, allocations: 1.697 MB / 0.6683 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004483/0.5246, allocations: 3.594 MB / 0.6718 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.5246, allocations: 38.22 kB / 0.6719 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004544/0.5251, allocations: 73.47 kB / 0.672 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.265e-06/0.5251, allocations: 0 / 0.672 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.01079/0.5359, allocations: 2.477 MB / 0.6744 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.536, allocations: 56.66 kB / 0.6744 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.5379, allocations: 1.396 MB / 0.6758 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.538, allocations: 37.39 kB / 0.6758 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004044/0.5384, allocations: 0.6641 MB / 0.6765 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.5386, allocations: 161.5 kB / 0.6766 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.459e-05/0.5387, allocations: 14.53 kB / 0.6766 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.569e-05/0.5387, allocations: 338.3 kB / 0.677 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003738/0.5425, allocations: 0.8749 MB / 0.6778 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003834/0.5463, allocations: 1.153 MB / 0.6789 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003693/0.55, allocations: 0.8675 MB / 0.6798 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.5501, allocations: 2.281 kB / 0.6798 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.008053/0.5581, allocations: 2.095 MB / 0.6818 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005992/0.5587, allocations: 3.03 MB / 0.6848 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.5588, allocations: 8.312 kB / 0.6848 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.5588, allocations: 12.59 kB / 0.6848 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/0.561, allocations: 452.2 kB / 0.6852 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.126e-05/0.561, allocations: 20.33 kB / 0.6853 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/0.5638, allocations: 370.7 kB / 0.6856 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.5639, allocations: 47.5 kB / 0.6857 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.5639, allocations: 4.344 kB / 0.6857 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00741/0.5713, allocations: 1.89 MB / 0.6875 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.5714, allocations: 7.656 kB / 0.6875 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.5714, allocations: 16.44 kB / 0.6875 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002063/0.5735, allocations: 441 kB / 0.688 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/0.5735, allocations: 19.83 kB / 0.688 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002574/0.5761, allocations: 342.4 kB / 0.6883 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.5762, allocations: 49.03 kB / 0.6884 GB, free: 14.06 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (90): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008714/0.5771, allocations: 421.5 kB / 0.6888 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002759/0.5774, allocations: 139.9 kB / 0.6889 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008197/0.5856, allocations: 2.126 MB / 0.691 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.5856, allocations: 12.53 kB / 0.691 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.5856, allocations: 6.391 kB / 0.691 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007027/0.5927, allocations: 1.87 MB / 0.6928 GB, free: 11.69 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.01003/0.6027, allocations: 3.491 MB / 0.6962 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.6028, allocations: 2.594 kB / 0.6962 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/0.6046, allocations: 369.6 kB / 0.6966 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.266e-05/0.6047, allocations: 2.969 kB / 0.6966 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.198e-05/0.6047, allocations: 25.44 kB / 0.6966 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.563e-06/0.6048, allocations: 3.969 kB / 0.6966 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.6048, allocations: 6.906 kB / 0.6966 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01099/0.6158, allocations: 3.036 MB / 0.6996 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009996/0.6168, allocations: 355 kB / 0.6999 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004386/0.6172, allocations: 20 kB / 0.6999 GB, free: 7.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/0.6196, allocations: 319.6 kB / 0.7002 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.509e-05/0.6197, allocations: 40.38 kB / 0.7003 GB, free: 6.918 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-05/0.6198, allocations: 31.97 kB / 0.7003 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001502/0.6213, allocations: 0.975 MB / 0.7013 GB, free: 5.914 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.6213, allocations: 0 / 0.7013 GB, free: 5.914 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002239/0.6236, allocations: 0.7801 MB / 0.702 GB, free: 5.133 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (58): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000953/0.6245, allocations: 0.5313 MB / 0.7025 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01121/0.6358, allocations: 2.877 MB / 0.7053 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.6358, allocations: 1.438 kB / 0.7053 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003592/0.6394, allocations: 0.9122 MB / 0.7062 GB, free: 0.832 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/0.6426, allocations: 0.738 MB / 0.707 GB, free: 116 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006745/0.6494, allocations: 3.4 MB / 0.7103 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007624/0.6502, allocations: 1.25 MB / 0.7115 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001796/0.652, allocations: 407.5 kB / 0.7119 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.6524, allocations: 143.3 kB / 0.712 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of SimCode: time 7.02e-07/0.6524, allocations: 0 / 0.712 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of Templates: time 0.04558/0.698, allocations: 31.69 MB / 0.743 GB, free: 11.56 MB / 0.5606 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: