Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json 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/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 171.4 kB / 7.641 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8153/0.8153, allocations: 130.7 MB / 138.7 MB, free: 3.512 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 221.5 MB / 391.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008613/0.0008612, allocations: 98.69 kB / 473.9 MB, free: 4.465 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.839e-05/1.84e-05, allocations: 4 kB / 0.5485 GB, free: 13.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4792/0.4792, allocations: 81.58 MB / 0.6282 GB, free: 42.87 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8386/1.318, allocations: 362 MB / 0.9816 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/1.318, allocations: 90.64 kB / 0.9817 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.071/2.389, allocations: 305 MB / 1.28 GB, free: 32.7 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.663e-06/2.389, allocations: 0 / 1.28 GB, free: 32.7 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 6.974e-05/2.389, allocations: 24 kB / 1.28 GB, free: 32.67 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.00224/2.391, allocations: 1.252 MB / 1.281 GB, free: 31.37 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/2.391, allocations: 8.031 kB / 1.281 GB, free: 31.36 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/2.392, allocations: 122.6 kB / 1.281 GB, free: 31.24 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/2.393, allocations: 0.66 MB / 1.282 GB, free: 30.53 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/2.393, allocations: 23.98 kB / 1.282 GB, free: 30.51 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-05/2.393, allocations: 40 kB / 1.282 GB, free: 30.47 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005894/2.393, allocations: 394.5 kB / 1.282 GB, free: 30.09 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007568/2.394, allocations: 0.5741 MB / 1.283 GB, free: 29.47 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/2.394, allocations: 7.953 kB / 1.283 GB, free: 29.46 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.625e-05/2.394, allocations: 0 / 1.283 GB, free: 29.46 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/2.394, allocations: 16 kB / 1.283 GB, free: 29.45 MB / 0.6667 GB Warning: The model contains alias variables with conflicting start and/or 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.002914/2.397, allocations: 2.482 MB / 1.285 GB, free: 26.84 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/2.398, allocations: 340.8 kB / 1.285 GB, free: 26.5 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/2.398, allocations: 184.8 kB / 1.286 GB, free: 26.31 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002704/2.398, allocations: 344.4 kB / 1.286 GB, free: 25.9 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003641/2.398, allocations: 329.1 kB / 1.286 GB, free: 25.55 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 1.623e-06/2.398, allocations: 0 / 1.286 GB, free: 25.55 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001453/2.4, allocations: 0.6042 MB / 1.287 GB, free: 24.94 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/2.4, allocations: 243.5 kB / 1.287 GB, free: 24.64 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005615/2.401, allocations: 0.5985 MB / 1.288 GB, free: 24.04 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/2.401, allocations: 25.7 kB / 1.288 GB, free: 24.01 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/2.401, allocations: 447.9 kB / 1.288 GB, free: 23.56 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 8.243e-05/2.401, allocations: 114.4 kB / 1.288 GB, free: 23.45 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/2.401, allocations: 4 kB / 1.288 GB, free: 23.45 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 7.109e-05/2.401, allocations: 329.9 kB / 1.289 GB, free: 23.12 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/2.401, allocations: 189.1 kB / 1.289 GB, free: 22.93 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/2.402, allocations: 375.2 kB / 1.289 GB, free: 22.49 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007516/2.402, allocations: 318.3 kB / 1.289 GB, free: 22.18 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/2.402, allocations: 4 kB / 1.289 GB, free: 22.17 MB / 0.6667 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001366/2.404, allocations: 0.7508 MB / 1.29 GB, free: 21.42 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002328/2.404, allocations: 1.091 MB / 1.291 GB, free: 20.24 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/2.404, allocations: 0 / 1.291 GB, free: 20.24 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/2.404, allocations: 11.94 kB / 1.291 GB, free: 20.23 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008891/2.405, allocations: 167.7 kB / 1.291 GB, free: 20.06 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006814/2.406, allocations: 1.795 MB / 1.293 GB, free: 18.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/2.406, allocations: 103.7 kB / 1.293 GB, free: 18.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.852e-05/2.406, allocations: 39.94 kB / 1.293 GB, free: 18.06 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.208e-06/2.407, allocations: 7.938 kB / 1.293 GB, free: 18.05 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001178/2.408, allocations: 0.6291 MB / 1.294 GB, free: 17.42 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/2.408, allocations: 4 kB / 1.294 GB, free: 17.42 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.502e-06/2.408, allocations: 12.34 kB / 1.294 GB, free: 17.41 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/2.408, allocations: 131.8 kB / 1.294 GB, free: 17.28 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/2.408, allocations: 8 kB / 1.294 GB, free: 17.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005861/2.409, allocations: 95.52 kB / 1.294 GB, free: 17.18 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/2.409, allocations: 27.98 kB / 1.294 GB, free: 17.15 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001664/2.409, allocations: 166.5 kB / 1.294 GB, free: 16.97 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-05/2.409, allocations: 86.92 kB / 1.294 GB, free: 16.89 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/2.411, allocations: 0.7138 MB / 1.295 GB, free: 16.16 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/2.411, allocations: 4 kB / 1.295 GB, free: 16.16 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/2.411, allocations: 0 / 1.295 GB, free: 16.16 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/2.411, allocations: 7.984 kB / 1.295 GB, free: 16.15 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/2.413, allocations: 1.511 MB / 1.297 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/2.413, allocations: 0 / 1.297 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003905/2.413, allocations: 99.88 kB / 1.297 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.74e-06/2.413, allocations: 4 kB / 1.297 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/2.413, allocations: 15.98 kB / 1.297 GB, free: 14.47 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000537/2.414, allocations: 1.766 MB / 1.298 GB, free: 12.64 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/2.414, allocations: 4.031 kB / 1.298 GB, free: 12.63 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/2.415, allocations: 1.225 MB / 1.3 GB, free: 11.36 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002307/2.416, allocations: 219.9 kB / 1.3 GB, free: 11.12 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/2.416, allocations: 11.95 kB / 1.3 GB, free: 11.11 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005551/2.416, allocations: 67.91 kB / 1.3 GB, free: 11.04 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/2.416, allocations: 47.86 kB / 1.3 GB, free: 11 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/2.416, allocations: 23.98 kB / 1.3 GB, free: 10.97 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004389/2.417, allocations: 459.1 kB / 1.3 GB, free: 10.53 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.31e-07/2.417, allocations: 4 kB / 1.3 GB, free: 10.52 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001387/2.418, allocations: 494.8 kB / 1.301 GB, free: 10.04 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008704/2.419, allocations: 492.4 kB / 1.301 GB, free: 9.555 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.00144/2.421, allocations: 0.9213 MB / 1.302 GB, free: 8.609 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/2.421, allocations: 0 / 1.302 GB, free: 8.609 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004109/2.421, allocations: 327.5 kB / 1.303 GB, free: 8.277 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/2.423, allocations: 295.1 kB / 1.303 GB, free: 7.992 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/2.425, allocations: 1.033 MB / 1.304 GB, free: 6.922 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/2.425, allocations: 1.022 MB / 1.305 GB, free: 5.867 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0007219/2.426, allocations: 180 kB / 1.305 GB, free: 5.688 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/2.426, allocations: 59.41 kB / 1.305 GB, free: 5.629 MB / 0.6667 GB Notification: Performance of SimCode: time 2.51e-07/2.426, allocations: 0 / 1.305 GB, free: 5.629 MB / 0.6667 GB Notification: Performance of Templates: time 0.4631/2.889, allocations: 15.53 MB / 1.32 GB, free: 159.9 MB / 0.6667 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)