Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/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-master/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_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.01347/0.01347, allocations: 173.4 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7916/0.7916, allocations: 135.2 MB / 151.1 MB, free: 13.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 223.2 MB / 406.9 MB, free: 3.219 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.001042/0.001042, allocations: 104.5 kB / 489.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004009/0.0004011, allocations: 15.94 kB / 0.5691 GB, free: 14.14 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5036/0.504, allocations: 82.3 MB / 0.6495 GB, free: 36.13 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8211/1.325, allocations: 362.9 MB / 1.004 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/1.326, allocations: 101.1 kB / 1.004 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.9511/2.277, allocations: 308.2 MB / 1.305 GB, free: 17.16 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.573e-06/2.277, allocations: 0 / 1.305 GB, free: 17.16 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.59e-05/2.277, allocations: 32.2 kB / 1.305 GB, free: 17.13 MB / 0.6823 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.002272/2.279, allocations: 1.414 MB / 1.306 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/2.279, allocations: 8.031 kB / 1.306 GB, free: 15.65 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/2.279, allocations: 126.5 kB / 1.307 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/2.28, allocations: 0.6717 MB / 1.307 GB, free: 14.81 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/2.28, allocations: 49.31 kB / 1.307 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.272e-05/2.281, allocations: 71.98 kB / 1.307 GB, free: 14.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008808/2.281, allocations: 0.6897 MB / 1.308 GB, free: 13.96 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/2.281, allocations: 4 kB / 1.308 GB, free: 13.96 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.77e-05/2.281, allocations: 24 kB / 1.308 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/2.282, allocations: 19.95 kB / 1.308 GB, free: 13.92 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006788/2.282, allocations: 464.9 kB / 1.308 GB, free: 13.46 MB / 0.6823 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.002892/2.285, allocations: 2.608 MB / 1.311 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006765/2.286, allocations: 411.3 kB / 1.311 GB, free: 10.31 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002522/2.286, allocations: 344.4 kB / 1.312 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004839/2.287, allocations: 365.4 kB / 1.312 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 1.723e-06/2.287, allocations: 0 / 1.312 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001416/2.288, allocations: 0.8705 MB / 1.313 GB, free: 8.605 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/2.288, allocations: 251.7 kB / 1.313 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007076/2.289, allocations: 0.734 MB / 1.314 GB, free: 7.551 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/2.289, allocations: 45.7 kB / 1.314 GB, free: 7.5 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/2.289, allocations: 428.4 kB / 1.314 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.502e-05/2.289, allocations: 122.8 kB / 1.314 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/2.289, allocations: 12 kB / 1.314 GB, free: 6.941 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.707e-05/2.289, allocations: 333.9 kB / 1.315 GB, free: 6.609 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003614/2.29, allocations: 237 kB / 1.315 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004426/2.29, allocations: 420.7 kB / 1.315 GB, free: 5.887 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/2.291, allocations: 293.9 kB / 1.316 GB, free: 5.59 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/2.291, allocations: 0 / 1.316 GB, free: 5.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001145/2.292, allocations: 0.7953 MB / 1.316 GB, free: 4.785 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002021/2.292, allocations: 1.091 MB / 1.318 GB, free: 3.605 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/2.292, allocations: 3.938 kB / 1.318 GB, free: 3.602 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/2.292, allocations: 8 kB / 1.318 GB, free: 3.594 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008861/2.293, allocations: 147.8 kB / 1.318 GB, free: 3.449 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006925/2.294, allocations: 1.789 MB / 1.319 GB, free: 1.59 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008604/2.294, allocations: 127.6 kB / 1.32 GB, free: 1.465 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.247e-05/2.294, allocations: 35.94 kB / 1.32 GB, free: 1.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/2.294, allocations: 4 kB / 1.32 GB, free: 1.426 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001095/2.296, allocations: 0.7049 MB / 1.32 GB, free: 0.7148 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/2.296, allocations: 4 kB / 1.32 GB, free: 0.7109 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.971e-06/2.296, allocations: 4 kB / 1.32 GB, free: 0.707 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/2.296, allocations: 140.1 kB / 1.32 GB, free: 0.5703 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/2.296, allocations: 7.984 kB / 1.32 GB, free: 0.5625 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006639/2.297, allocations: 115.5 kB / 1.321 GB, free: 460 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/2.297, allocations: 31.98 kB / 1.321 GB, free: 428 kB / 0.6823 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * 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.0004081/2.297, allocations: 353.5 kB / 1.321 GB, free: 60 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3545/2.652, allocations: 94.91 kB / 1.321 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/2.654, allocations: 0.7461 MB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/2.654, allocations: 11.3 kB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/2.654, allocations: 1.469 kB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/2.654, allocations: 2.656 kB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/2.657, allocations: 1.627 MB / 1.323 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/2.657, allocations: 1.203 kB / 1.323 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004657/2.657, allocations: 93.53 kB / 1.323 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.808e-06/2.657, allocations: 5.156 kB / 1.323 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.451e-05/2.657, allocations: 19.38 kB / 1.323 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005041/2.658, allocations: 1.762 MB / 1.325 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/2.658, allocations: 9.734 kB / 1.325 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001924/2.66, allocations: 1.28 MB / 1.326 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/2.66, allocations: 241.2 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/2.66, allocations: 15.08 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006246/2.661, allocations: 80.25 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/2.661, allocations: 49.58 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/2.661, allocations: 23.05 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0008544/2.662, allocations: 0.565 MB / 1.327 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.61e-07/2.662, allocations: 0 / 1.327 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001752/2.664, allocations: 0.498 MB / 1.328 GB, free: 162.7 MB / 0.6823 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) * Number of clocked states: 0 () * 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.001045/2.665, allocations: 497 kB / 1.328 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002271/2.667, allocations: 1.003 MB / 1.329 GB, free: 162.5 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/2.667, allocations: 4.344 kB / 1.329 GB, free: 162.5 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000627/2.668, allocations: 359.7 kB / 1.33 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/2.67, allocations: 366.4 kB / 1.33 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/2.673, allocations: 1.736 MB / 1.332 GB, free: 161.6 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/2.673, allocations: 1.018 MB / 1.333 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0007187/2.674, allocations: 156.6 kB / 1.333 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/2.674, allocations: 63.78 kB / 1.333 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of SimCode: time 5.61e-07/2.674, allocations: 0 / 1.333 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of Templates: time 0.02775/2.702, allocations: 16.95 MB / 1.349 GB, free: 160.7 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)