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.001396/0.001396, allocations: 100.4 kB / 16.27 MB, free: 5.969 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.001342/0.001342, allocations: 190.9 kB / 17.2 MB, free: 5.598 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.379/1.379, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8083/0.8083, allocations: 135.1 MB / 426.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 63.91 kB / 0.506 GB, free: 8.352 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3409, allocations: 80.91 MB / 0.585 GB, free: 25.26 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.03982/0.3808, allocations: 48.17 MB / 0.6321 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01889/0.3997, allocations: 13.37 MB / 0.6451 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002331/0.4021, allocations: 67.62 kB / 0.6452 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002496/0.4047, allocations: 0.9125 MB / 0.6461 GB, free: 11.93 MB / 494.1 MB [/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.005349/0.4101, allocations: 2.072 MB / 0.6481 GB, free: 9.848 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004579/0.4147, allocations: 1.848 MB / 0.6499 GB, free: 8.012 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005381/0.42, allocations: 4.104 MB / 0.6539 GB, free: 3.898 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002528/0.4226, allocations: 1.484 MB / 0.6554 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003723/0.4263, allocations: 1.62 MB / 0.6569 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00204/0.4284, allocations: 1.179 MB / 0.6581 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004937/0.4289, allocations: 156 kB / 0.6582 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00348/0.4324, allocations: 1.451 MB / 0.6597 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007773/0.4332, allocations: 454.5 kB / 0.6601 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001556/0.4347, allocations: 0.8475 MB / 0.6609 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004937/0.4397, allocations: 2.914 MB / 0.6638 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4397, allocations: 0 / 0.6638 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4397, allocations: 0 / 0.6638 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.255e-05/0.4398, allocations: 3.938 kB / 0.6638 GB, free: 9.75 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.004446/0.4443, allocations: 2.009 MB / 0.6657 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.4443, allocations: 17.11 kB / 0.6658 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01035/0.4547, allocations: 1.29 MB / 0.667 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003232/0.4579, allocations: 1.357 MB / 0.6683 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004209/0.4584, allocations: 133.9 kB / 0.6685 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002982/0.4587, allocations: 96 kB / 0.6686 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005868/0.4646, allocations: 1.593 MB / 0.6701 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.4646, allocations: 4 kB / 0.6701 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/0.4648, allocations: 40 kB / 0.6702 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.498e-05/0.4649, allocations: 24 kB / 0.6702 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008773/0.4736, allocations: 1.783 MB / 0.6719 GB, free: 1.254 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.01647/0.4901, allocations: 6.438 MB / 0.6782 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007745/0.4979, allocations: 1.387 MB / 0.6796 GB, free: 9.074 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003767/0.5017, allocations: 0.7006 MB / 0.6802 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005716/0.5074, allocations: 3.932 MB / 0.6841 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.5075, allocations: 38.56 kB / 0.6841 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 2.394e-06/0.5075, allocations: 0 / 0.6841 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.01132/0.5188, allocations: 1.987 MB / 0.6861 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.5189, allocations: 59.41 kB / 0.6861 GB, free: 1.801 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.5213, allocations: 1.324 MB / 0.6874 GB, free: 476 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.5214, allocations: 37.7 kB / 0.6874 GB, free: 432 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006293/0.522, allocations: 0.6912 MB / 0.6881 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/0.5223, allocations: 153.8 kB / 0.6883 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003788/0.5227, allocations: 194.4 kB / 0.6885 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.5228, allocations: 337.9 kB / 0.6888 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003983/0.5268, allocations: 0.7266 MB / 0.6895 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004204/0.531, allocations: 1.083 MB / 0.6905 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007648/0.5387, allocations: 1.628 MB / 0.6921 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.575e-05/0.5387, allocations: 4 kB / 0.6921 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.009013/0.5478, allocations: 1.849 MB / 0.6939 GB, free: 9.414 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.5478, allocations: 12 kB / 0.694 GB, free: 9.402 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/0.5479, allocations: 15.88 kB / 0.694 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/0.5479, allocations: 20.34 kB / 0.694 GB, free: 9.367 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002417/0.5503, allocations: 395.4 kB / 0.6944 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.255e-05/0.5504, allocations: 23.92 kB / 0.6944 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002784/0.5532, allocations: 327.2 kB / 0.6947 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.5533, allocations: 55.97 kB / 0.6948 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004549/0.5579, allocations: 1.001 MB / 0.6957 GB, free: 7.578 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004299/0.5622, allocations: 1.083 MB / 0.6968 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007599/0.5698, allocations: 1.64 MB / 0.6984 GB, free: 4.543 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.444e-05/0.5699, allocations: 4 kB / 0.6984 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.008905/0.5788, allocations: 1.853 MB / 0.7002 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.5789, allocations: 10.5 kB / 0.7002 GB, free: 2.668 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.5789, allocations: 12 kB / 0.7002 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.5789, allocations: 16 kB / 0.7002 GB, free: 2.641 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002373/0.5813, allocations: 395.7 kB / 0.7006 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.831e-05/0.5813, allocations: 23.92 kB / 0.7006 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/0.584, allocations: 299.6 kB / 0.7009 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.5842, allocations: 51.98 kB / 0.701 GB, free: 1.887 MB / 0.5294 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.0003294/0.5845, allocations: 239.9 kB / 0.7012 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004391/0.585, allocations: 138.3 kB / 0.7013 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008855/0.5938, allocations: 1.785 MB / 0.7031 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/0.5939, allocations: 11.98 kB / 0.7031 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.5939, allocations: 0 / 0.7031 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007496/0.6014, allocations: 1.556 MB / 0.7046 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.6118, allocations: 3.007 MB / 0.7075 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6118, allocations: 0 / 0.7075 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/0.6139, allocations: 295.6 kB / 0.7078 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.697e-06/0.6139, allocations: 0 / 0.7078 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.085e-05/0.614, allocations: 23.98 kB / 0.7079 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.614, allocations: 7.984 kB / 0.7079 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/0.614, allocations: 4 kB / 0.7079 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/0.6257, allocations: 2.452 MB / 0.7103 GB, free: 8.203 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007163/0.6265, allocations: 335 kB / 0.7106 GB, free: 7.855 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003387/0.6268, allocations: 16 kB / 0.7106 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/0.6291, allocations: 207.7 kB / 0.7108 GB, free: 7.637 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.6293, allocations: 48.31 kB / 0.7108 GB, free: 7.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-05/0.6294, allocations: 31.97 kB / 0.7109 GB, free: 7.559 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001638/0.631, allocations: 0.9074 MB / 0.7118 GB, free: 6.652 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/0.631, allocations: 0 / 0.7118 GB, free: 6.652 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002493/0.6335, allocations: 0.776 MB / 0.7125 GB, free: 5.875 MB / 0.545 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.001246/0.6348, allocations: 0.5336 MB / 0.713 GB, free: 5.355 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01286/0.6476, allocations: 2.533 MB / 0.7155 GB, free: 2.828 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.6477, allocations: 0 / 0.7155 GB, free: 2.828 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003921/0.6516, allocations: 0.7417 MB / 0.7162 GB, free: 2.086 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/0.6552, allocations: 0.7276 MB / 0.7169 GB, free: 1.414 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00731/0.6626, allocations: 2.795 MB / 0.7197 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008819/0.6635, allocations: 1.221 MB / 0.7209 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005778/0.6641, allocations: 135.4 kB / 0.721 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of SimCode: time 6.81e-07/0.6641, allocations: 0 / 0.721 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of Templates: time 0.04015/0.7042, allocations: 28.01 MB / 0.7483 GB, free: 1.398 MB / 0.5762 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)