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.001512/0.001512, allocations: 106.2 kB / 16.27 MB, free: 5.949 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.001836/0.001835, allocations: 189.7 kB / 17.2 MB, free: 5.586 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.421/1.421, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8739/0.8739, allocations: 132.2 MB / 423.3 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001433, allocations: 67.89 kB / 0.5024 GB, free: 11.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3451, allocations: 80.18 MB / 0.5807 GB, free: 27.34 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.04211/0.3873, allocations: 48.18 MB / 0.6278 GB, free: 13.96 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02264/0.41, allocations: 13.38 MB / 0.6409 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003351/0.4134, allocations: 67.62 kB / 0.6409 GB, free: 500 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002993/0.4165, allocations: 0.9126 MB / 0.6418 GB, free: 15.57 MB / 494.1 MB [/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.006704/0.4232, allocations: 2.07 MB / 0.6438 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005473/0.4287, allocations: 1.852 MB / 0.6456 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005434/0.4341, allocations: 4.098 MB / 0.6496 GB, free: 7.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002023/0.4362, allocations: 1.484 MB / 0.6511 GB, free: 6.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003362/0.4395, allocations: 1.62 MB / 0.6527 GB, free: 4.414 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.4411, allocations: 1.175 MB / 0.6538 GB, free: 3.234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002305/0.4414, allocations: 152 kB / 0.654 GB, free: 3.086 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002922/0.4443, allocations: 1.459 MB / 0.6554 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004309/0.4448, allocations: 454.5 kB / 0.6558 GB, free: 1.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000894/0.4457, allocations: 0.8475 MB / 0.6567 GB, free: 336 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003593/0.4493, allocations: 2.914 MB / 0.6595 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4493, allocations: 0 / 0.6595 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4493, allocations: 0 / 0.6595 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.771e-05/0.4493, allocations: 0 / 0.6595 GB, free: 13.41 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.003167/0.4525, allocations: 2.005 MB / 0.6615 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.4525, allocations: 12.03 kB / 0.6615 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009894/0.4624, allocations: 1.294 MB / 0.6627 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/0.4649, allocations: 1.357 MB / 0.6641 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003737/0.4653, allocations: 137.9 kB / 0.6642 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/0.4655, allocations: 103.9 kB / 0.6643 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005379/0.4709, allocations: 1.597 MB / 0.6659 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.4709, allocations: 3.938 kB / 0.6659 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.471, allocations: 44 kB / 0.6659 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.4711, allocations: 24 kB / 0.6659 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008429/0.4795, allocations: 1.779 MB / 0.6677 GB, free: 4.898 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.01515/0.4947, allocations: 6.422 MB / 0.6739 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007919/0.5026, allocations: 1.387 MB / 0.6753 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003821/0.5064, allocations: 0.7068 MB / 0.676 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005192/0.5116, allocations: 3.932 MB / 0.6798 GB, free: 7.566 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.5117, allocations: 38.56 kB / 0.6798 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.5117, allocations: 0 / 0.6798 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.01135/0.523, allocations: 1.983 MB / 0.6818 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.5231, allocations: 59.34 kB / 0.6818 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.5251, allocations: 1.325 MB / 0.6831 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.405e-05/0.5252, allocations: 33.7 kB / 0.6832 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005705/0.5257, allocations: 0.6988 MB / 0.6839 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.5259, allocations: 153.8 kB / 0.684 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003825/0.5263, allocations: 190.4 kB / 0.6842 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.5264, allocations: 337.9 kB / 0.6845 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004008/0.5304, allocations: 0.7266 MB / 0.6852 GB, free: 1.965 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004293/0.5348, allocations: 1.079 MB / 0.6863 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007339/0.5421, allocations: 1.636 MB / 0.6879 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.5422, allocations: 0 / 0.6879 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.008682/0.5508, allocations: 1.86 MB / 0.6897 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.5509, allocations: 8 kB / 0.6897 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.5509, allocations: 12 kB / 0.6897 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.097e-05/0.551, allocations: 20 kB / 0.6897 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/0.5533, allocations: 399.7 kB / 0.6901 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.379e-05/0.5533, allocations: 24 kB / 0.6901 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002669/0.556, allocations: 335.2 kB / 0.6904 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.5561, allocations: 51.97 kB / 0.6905 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00446/0.5606, allocations: 0.9974 MB / 0.6915 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004237/0.5648, allocations: 1.079 MB / 0.6925 GB, free: 9.992 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007413/0.5723, allocations: 1.64 MB / 0.6941 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.042e-06/0.5723, allocations: 0 / 0.6941 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.008563/0.5809, allocations: 1.853 MB / 0.6959 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.5809, allocations: 8 kB / 0.6959 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.5809, allocations: 12 kB / 0.6959 GB, free: 6.316 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.5809, allocations: 16 kB / 0.696 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/0.5833, allocations: 399.5 kB / 0.6963 GB, free: 5.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.037e-05/0.5833, allocations: 19.92 kB / 0.6964 GB, free: 5.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002555/0.5859, allocations: 291.8 kB / 0.6966 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.586, allocations: 55.97 kB / 0.6967 GB, free: 5.551 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.0003369/0.5863, allocations: 247.8 kB / 0.6969 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002544/0.5866, allocations: 134.3 kB / 0.6971 GB, free: 5.168 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008467/0.5951, allocations: 1.783 MB / 0.6988 GB, free: 3.402 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/0.5951, allocations: 11.98 kB / 0.6988 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.5951, allocations: 4 kB / 0.6988 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007654/0.6028, allocations: 1.556 MB / 0.7003 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009994/0.6128, allocations: 3.011 MB / 0.7033 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.6128, allocations: 0 / 0.7033 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/0.6149, allocations: 291.7 kB / 0.7036 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.6149, allocations: 3.938 kB / 0.7036 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.204e-05/0.615, allocations: 19.98 kB / 0.7036 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.207e-06/0.615, allocations: 7.938 kB / 0.7036 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.615, allocations: 4 kB / 0.7036 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01176/0.6268, allocations: 2.448 MB / 0.706 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006625/0.6275, allocations: 335 kB / 0.7063 GB, free: 11.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/0.6277, allocations: 12 kB / 0.7063 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/0.6299, allocations: 211.7 kB / 0.7065 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.245e-05/0.63, allocations: 48.27 kB / 0.7066 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-05/0.6301, allocations: 31.97 kB / 0.7066 GB, free: 11.22 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001421/0.6316, allocations: 0.9074 MB / 0.7075 GB, free: 10.31 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6316, allocations: 0 / 0.7075 GB, free: 10.31 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002265/0.6338, allocations: 0.776 MB / 0.7082 GB, free: 9.535 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.001112/0.635, allocations: 0.5309 MB / 0.7088 GB, free: 9.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01287/0.6478, allocations: 2.53 MB / 0.7112 GB, free: 6.496 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.6479, allocations: 0 / 0.7112 GB, free: 6.496 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004029/0.6519, allocations: 0.7491 MB / 0.712 GB, free: 5.746 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003291/0.6552, allocations: 0.7232 MB / 0.7127 GB, free: 5.078 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006913/0.6622, allocations: 2.804 MB / 0.7154 GB, free: 2.219 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007756/0.663, allocations: 1.214 MB / 0.7166 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005382/0.6635, allocations: 139.3 kB / 0.7167 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/0.6635, allocations: 0 / 0.7167 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of Templates: time 0.03909/0.7026, allocations: 28 MB / 0.7441 GB, free: 5.098 MB / 0.5762 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)