Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.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.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005644/0.005644, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001153/0.001154, allocations: 188.6 kB / 16.67 MB, free: 5.93 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7924/0.7924, allocations: 132.2 MB / 422.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002335/0.002335, allocations: 66.83 kB / 0.5813 GB, free: 23.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.21, allocations: 80.22 MB / 0.6597 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03679/0.2469, allocations: 29.82 MB / 0.6888 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01315/0.2601, allocations: 8.143 MB / 0.6968 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.2622, allocations: 31.75 kB / 0.6968 GB, free: 4.09 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.2639, allocations: 440.9 kB / 0.6972 GB, free: 3.656 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005604/0.2696, allocations: 1.433 MB / 0.6986 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003674/0.2733, allocations: 1.145 MB / 0.6997 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004785/0.2781, allocations: 3.552 MB / 0.7032 GB, free: 13.52 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002346/0.2805, allocations: 1.329 MB / 0.7045 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003872/0.2844, allocations: 1.702 MB / 0.7062 GB, free: 10.47 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003728/0.2881, allocations: 1.612 MB / 0.7077 GB, free: 8.852 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0009103/0.289, allocations: 128 kB / 0.7078 GB, free: 8.727 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003105/0.2921, allocations: 1.018 MB / 0.7088 GB, free: 7.707 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.2932, allocations: 406.7 kB / 0.7092 GB, free: 7.309 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002133/0.2954, allocations: 0.7467 MB / 0.71 GB, free: 6.559 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005224/0.3006, allocations: 2.209 MB / 0.7121 GB, free: 4.344 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3006, allocations: 0 / 0.7121 GB, free: 4.344 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3006, allocations: 0 / 0.7121 GB, free: 4.344 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.4e-05/0.3007, allocations: 0 / 0.7121 GB, free: 4.344 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004529/0.3053, allocations: 1.675 MB / 0.7138 GB, free: 2.617 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.3053, allocations: 15.97 kB / 0.7138 GB, free: 2.602 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006757/0.306, allocations: 150.6 kB / 0.7139 GB, free: 2.453 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/0.3083, allocations: 0.9182 MB / 0.7148 GB, free: 1.477 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.953e-05/0.3084, allocations: 77.31 kB / 0.7149 GB, free: 1.402 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002202/0.3086, allocations: 120 kB / 0.715 GB, free: 1.285 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.3098, allocations: 0.6395 MB / 0.7156 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.3098, allocations: 0 / 0.7156 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.308e-05/0.3098, allocations: 23.94 kB / 0.7156 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.3099, allocations: 16 kB / 0.7157 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008766/0.3108, allocations: 468.8 kB / 0.7161 GB, free: 124 kB / 0.545 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.004777/0.3155, allocations: 2.875 MB / 0.7189 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006041/0.3162, allocations: 299.3 kB / 0.7192 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.3165, allocations: 153.3 kB / 0.7193 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003002/0.3168, allocations: 344.6 kB / 0.7197 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.3168, allocations: 34.84 kB / 0.7197 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.3168, allocations: 0 / 0.7197 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of matching and sorting (n=33): time 0.001284/0.3181, allocations: 0.5252 MB / 0.7202 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.3182, allocations: 59.41 kB / 0.7203 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.3192, allocations: 0.9113 MB / 0.7212 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001109/0.3193, allocations: 61.69 kB / 0.7212 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004097/0.3197, allocations: 482.6 kB / 0.7217 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.153e-05/0.3198, allocations: 114.4 kB / 0.7218 GB, free: 10 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004356/0.3203, allocations: 294.9 kB / 0.7221 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3204, allocations: 330.1 kB / 0.7224 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.3208, allocations: 197.4 kB / 0.7226 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.3222, allocations: 1.151 MB / 0.7237 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000781/0.323, allocations: 455.4 kB / 0.7241 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.323, allocations: 0 / 0.7241 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001327/0.3243, allocations: 0.6579 MB / 0.7248 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3243, allocations: 5.406 kB / 0.7248 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3243, allocations: 4 kB / 0.7248 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.3244, allocations: 8.188 kB / 0.7248 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.3258, allocations: 231.7 kB / 0.725 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001622/0.3274, allocations: 2.958 MB / 0.7279 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003165/0.3306, allocations: 0.6987 MB / 0.7286 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.3307, allocations: 24 kB / 0.7286 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007749/0.3315, allocations: 377.2 kB / 0.729 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001367/0.3329, allocations: 1.158 MB / 0.7301 GB, free: 0.582 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007841/0.3337, allocations: 456.7 kB / 0.7305 GB, free: 92 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.008e-06/0.3337, allocations: 0 / 0.7305 GB, free: 92 kB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001518/0.3352, allocations: 0.6511 MB / 0.7312 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3352, allocations: 4 kB / 0.7312 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.3352, allocations: 7.938 kB / 0.7312 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.3353, allocations: 8 kB / 0.7312 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/0.336, allocations: 156.1 kB / 0.7313 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.336, allocations: 15.98 kB / 0.7314 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004275/0.3403, allocations: 0.9574 MB / 0.7323 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/0.3403, allocations: 23.98 kB / 0.7323 GB, free: 14.26 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003609/0.3407, allocations: 253 kB / 0.7326 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.3409, allocations: 98.69 kB / 0.7327 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.3422, allocations: 0.5047 MB / 0.7331 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.3422, allocations: 4 kB / 0.7331 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.3422, allocations: 3.938 kB / 0.7332 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3422, allocations: 3.984 kB / 0.7332 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.3445, allocations: 1.253 MB / 0.7344 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3446, allocations: 0 / 0.7344 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.3451, allocations: 120 kB / 0.7345 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.3451, allocations: 4 kB / 0.7345 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.655e-05/0.3452, allocations: 16.06 kB / 0.7345 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001435/0.3466, allocations: 2.938 MB / 0.7374 GB, free: 8.867 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/0.3467, allocations: 7.922 kB / 0.7374 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009318/0.3476, allocations: 0.5714 MB / 0.7379 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003555/0.348, allocations: 211.7 kB / 0.7381 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.3481, allocations: 12 kB / 0.7382 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005067/0.3486, allocations: 39.89 kB / 0.7382 GB, free: 7.984 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.304e-05/0.3487, allocations: 23.97 kB / 0.7382 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.3487, allocations: 12 kB / 0.7382 GB, free: 7.949 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008124/0.3496, allocations: 0.6084 MB / 0.7388 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3496, allocations: 0 / 0.7388 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001723/0.3513, allocations: 0.5345 MB / 0.7393 GB, free: 6.797 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008799/0.3522, allocations: 334.1 kB / 0.7397 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002706/0.3549, allocations: 0.847 MB / 0.7405 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.3549, allocations: 0 / 0.7405 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006009/0.3555, allocations: 229.8 kB / 0.7407 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.3574, allocations: 404.7 kB / 0.7411 GB, free: 5.027 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.3603, allocations: 1.518 MB / 0.7426 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006724/0.361, allocations: 1.037 MB / 0.7436 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00106/0.3621, allocations: 207.3 kB / 0.7438 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/0.3623, allocations: 79.41 kB / 0.7439 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of SimCode: time 1.323e-06/0.3623, allocations: 0 / 0.7439 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of Templates: time 0.4095/0.7718, allocations: 24.98 MB / 0.7683 GB, free: 74.68 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)