Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.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.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005222/0.005222, allocations: 97.16 kB / 15.73 MB, free: 6.055 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.00124/0.00124, allocations: 192.9 kB / 16.67 MB, free: 5.969 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9201/0.9201, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 59.91 kB / 0.5856 GB, free: 3.305 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4432/0.4446, allocations: 80.91 MB / 0.6646 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV): time 0.02176/0.4664, allocations: 22.33 MB / 0.6864 GB, free: 5.648 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.007719/0.4742, allocations: 5.23 MB / 0.6916 GB, free: 1.387 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007841/0.475, allocations: 20.34 kB / 0.6916 GB, free: 1.379 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0008898/0.4759, allocations: 316 kB / 0.6919 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002702/0.4786, allocations: 0.8641 MB / 0.6927 GB, free: 428 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.4807, allocations: 0.7239 MB / 0.6934 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002106/0.4828, allocations: 1.498 MB / 0.6949 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008062/0.4836, allocations: 0.5164 MB / 0.6954 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.4848, allocations: 0.6277 MB / 0.696 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006521/0.4855, allocations: 493.7 kB / 0.6965 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.869e-05/0.4856, allocations: 55.5 kB / 0.6965 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.4869, allocations: 0.6268 MB / 0.6971 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.487, allocations: 159.2 kB / 0.6973 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.4874, allocations: 368.6 kB / 0.6976 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.4888, allocations: 1.07 MB / 0.6987 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4888, allocations: 0 / 0.6987 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.193e-06/0.4888, allocations: 1 kB / 0.6987 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.4888, allocations: 0 / 0.6987 GB, free: 12.54 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001965/0.4908, allocations: 1.08 MB / 0.6997 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.4908, allocations: 8.844 kB / 0.6998 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.491, allocations: 86.78 kB / 0.6998 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009729/0.492, allocations: 0.58 MB / 0.7004 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.4921, allocations: 29.16 kB / 0.7004 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.063e-05/0.4922, allocations: 38.12 kB / 0.7005 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006755/0.4928, allocations: 311.8 kB / 0.7008 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.4929, allocations: 0 / 0.7008 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.4929, allocations: 10.69 kB / 0.7008 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.531e-05/0.4929, allocations: 20.77 kB / 0.7008 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005828/0.4935, allocations: 255 kB / 0.701 GB, free: 10.77 MB / 0.5294 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.002549/0.4961, allocations: 1.573 MB / 0.7026 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003972/0.4965, allocations: 193.5 kB / 0.7028 GB, free: 9.32 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.4967, allocations: 91.52 kB / 0.7028 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003918/0.4971, allocations: 425.3 kB / 0.7032 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.4971, allocations: 32.03 kB / 0.7033 GB, free: 8.746 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=19): time 2.735e-06/0.4972, allocations: 3.984 kB / 0.7033 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of matching and sorting (n=19): time 0.0008471/0.498, allocations: 339 kB / 0.7036 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.4981, allocations: 53.06 kB / 0.7037 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008297/0.4989, allocations: 0.6522 MB / 0.7043 GB, free: 8.109 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.4989, allocations: 31.02 kB / 0.7043 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.4992, allocations: 304.1 kB / 0.7046 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.822e-05/0.4993, allocations: 76.42 kB / 0.7047 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.4995, allocations: 104.3 kB / 0.7048 GB, free: 7.676 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001913/0.4997, allocations: 372.2 kB / 0.7051 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.5, allocations: 141.6 kB / 0.7053 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.5004, allocations: 201.6 kB / 0.7055 GB, free: 7.105 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005641/0.5009, allocations: 285.9 kB / 0.7057 GB, free: 6.941 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.501, allocations: 0 / 0.7057 GB, free: 6.941 MB / 0.5294 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008878/0.5019, allocations: 461.4 kB / 0.7062 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.5019, allocations: 4 kB / 0.7062 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.5019, allocations: 4.062 kB / 0.7062 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.5019, allocations: 7.938 kB / 0.7062 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.5027, allocations: 135.8 kB / 0.7063 GB, free: 6.418 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007585/0.5035, allocations: 1.192 MB / 0.7075 GB, free: 5.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004809/0.504, allocations: 55.67 kB / 0.7075 GB, free: 5.125 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.5041, allocations: 12 kB / 0.7076 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004717/0.5045, allocations: 282.5 kB / 0.7078 GB, free: 4.836 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003624/0.5049, allocations: 206.4 kB / 0.708 GB, free: 4.613 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005643/0.5055, allocations: 281.5 kB / 0.7083 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.794e-06/0.5055, allocations: 0 / 0.7083 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008133/0.5063, allocations: 448.9 kB / 0.7087 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.068e-05/0.5064, allocations: 4 kB / 0.7087 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.5064, allocations: 7.938 kB / 0.7087 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.43e-06/0.5064, allocations: 0 / 0.7087 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.5069, allocations: 111.9 kB / 0.7088 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.5069, allocations: 0 / 0.7088 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004454/0.5073, allocations: 48.06 kB / 0.7089 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/0.5074, allocations: 16 kB / 0.7089 GB, free: 3.695 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000176/0.5076, allocations: 204.1 kB / 0.7091 GB, free: 3.488 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.5077, allocations: 67.52 kB / 0.7092 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007812/0.5085, allocations: 320.5 kB / 0.7095 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.5085, allocations: 0 / 0.7095 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.5085, allocations: 0 / 0.7095 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.5085, allocations: 3.938 kB / 0.7095 GB, free: 3.09 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.51, allocations: 0.9034 MB / 0.7103 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.51, allocations: 4 kB / 0.7103 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/0.5103, allocations: 51.91 kB / 0.7104 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.5103, allocations: 0 / 0.7104 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.039e-05/0.5103, allocations: 15.92 kB / 0.7104 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006243/0.511, allocations: 1.184 MB / 0.7116 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.511, allocations: 3.938 kB / 0.7116 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008174/0.5118, allocations: 0.5137 MB / 0.7121 GB, free: 276 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.512, allocations: 172.6 kB / 0.7122 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.267e-05/0.5121, allocations: 12 kB / 0.7123 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/0.5124, allocations: 15.98 kB / 0.7123 GB, free: 56 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.5125, allocations: 19.97 kB / 0.7123 GB, free: 36 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.5125, allocations: 8.062 kB / 0.7123 GB, free: 28 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006399/0.5132, allocations: 451.1 kB / 0.7127 GB, free: 15.59 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.21e-07/0.5132, allocations: 0 / 0.7127 GB, free: 15.59 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009534/0.5141, allocations: 303.4 kB / 0.713 GB, free: 15.29 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valDyn.val.filter.s[1],valDyn.val.filter.s[2]) * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005266/0.5147, allocations: 255.5 kB / 0.7133 GB, free: 15.04 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001399/0.5161, allocations: 0.5277 MB / 0.7138 GB, free: 14.51 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.5161, allocations: 0 / 0.7138 GB, free: 14.51 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.5164, allocations: 134.3 kB / 0.7139 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.5177, allocations: 272.2 kB / 0.7142 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.5193, allocations: 1.022 MB / 0.7152 GB, free: 13.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.5198, allocations: 0.8902 MB / 0.716 GB, free: 12.15 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003917/0.5202, allocations: 128.8 kB / 0.7162 GB, free: 12.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.5203, allocations: 47.42 kB / 0.7162 GB, free: 11.97 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.5203, allocations: 4 kB / 0.7162 GB, free: 11.97 MB / 0.545 GB Notification: Performance of Templates: time 0.01864/0.539, allocations: 11.21 MB / 0.7271 GB, free: 0.9219 MB / 0.545 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)