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.01024/0.01024, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7877/0.7877, allocations: 132.3 MB / 148.1 MB, free: 248 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.674/1.674, allocations: 223.2 MB / 403.2 MB, free: 6.66 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.001193/0.001193, allocations: 97.92 kB / 485.5 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.0003548, allocations: 8 kB / 0.5641 GB, free: 2.109 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4707/0.4711, allocations: 81.57 MB / 0.6437 GB, free: 39.34 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8613/1.332, allocations: 362.7 MB / 0.9979 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/1.333, allocations: 91.77 kB / 0.998 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.9636/2.296, allocations: 308.2 MB / 1.299 GB, free: 27.59 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.404e-06/2.296, allocations: 4 kB / 1.299 GB, free: 27.59 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.095e-05/2.297, allocations: 31.92 kB / 1.299 GB, free: 27.55 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.002832/2.299, allocations: 1.411 MB / 1.3 GB, free: 26.09 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/2.299, allocations: 8.031 kB / 1.3 GB, free: 26.08 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/2.3, allocations: 126.6 kB / 1.301 GB, free: 25.95 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/2.301, allocations: 0.6756 MB / 1.301 GB, free: 25.23 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/2.301, allocations: 53.31 kB / 1.301 GB, free: 25.18 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.839e-05/2.301, allocations: 64 kB / 1.301 GB, free: 25.12 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009559/2.302, allocations: 0.6859 MB / 1.302 GB, free: 24.39 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/2.302, allocations: 3.938 kB / 1.302 GB, free: 24.39 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.662e-05/2.302, allocations: 27.95 kB / 1.302 GB, free: 24.36 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/2.302, allocations: 16 kB / 1.302 GB, free: 24.34 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009593/2.303, allocations: 468.9 kB / 1.303 GB, free: 23.89 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.00313/2.306, allocations: 2.612 MB / 1.305 GB, free: 21.14 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007211/2.307, allocations: 413.8 kB / 1.305 GB, free: 20.73 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002433/2.307, allocations: 340.7 kB / 1.306 GB, free: 20.32 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004863/2.308, allocations: 353.9 kB / 1.306 GB, free: 19.95 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 2.414e-06/2.308, allocations: 0 / 1.306 GB, free: 19.95 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001484/2.309, allocations: 0.8823 MB / 1.307 GB, free: 19.03 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/2.309, allocations: 243.5 kB / 1.307 GB, free: 18.74 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007348/2.31, allocations: 0.734 MB / 1.308 GB, free: 17.98 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/2.31, allocations: 41.7 kB / 1.308 GB, free: 17.94 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/2.31, allocations: 432.5 kB / 1.308 GB, free: 17.51 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/2.31, allocations: 122.3 kB / 1.309 GB, free: 17.39 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/2.31, allocations: 8 kB / 1.309 GB, free: 17.38 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.483e-05/2.311, allocations: 338 kB / 1.309 GB, free: 17.05 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/2.311, allocations: 225.1 kB / 1.309 GB, free: 16.83 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004754/2.311, allocations: 429.4 kB / 1.309 GB, free: 16.33 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004339/2.312, allocations: 281.7 kB / 1.31 GB, free: 16.05 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/2.312, allocations: 0 / 1.31 GB, free: 16.05 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001187/2.313, allocations: 0.8072 MB / 1.311 GB, free: 15.23 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002125/2.313, allocations: 1.087 MB / 1.312 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/2.313, allocations: 4 kB / 1.312 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/2.313, allocations: 4 kB / 1.312 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009131/2.314, allocations: 163.7 kB / 1.312 GB, free: 13.89 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007907/2.315, allocations: 1.778 MB / 1.313 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008932/2.316, allocations: 131.3 kB / 1.314 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.429e-05/2.316, allocations: 31.98 kB / 1.314 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/2.316, allocations: 4 kB / 1.314 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001089/2.317, allocations: 0.7096 MB / 1.314 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/2.317, allocations: 8.062 kB / 1.314 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.123e-06/2.317, allocations: 7.984 kB / 1.314 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/2.318, allocations: 139.8 kB / 1.314 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/2.318, allocations: 7.938 kB / 1.314 GB, free: 11 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00078/2.319, allocations: 119.4 kB / 1.315 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/2.319, allocations: 39.98 kB / 1.315 GB, free: 10.84 MB / 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.000545/2.319, allocations: 350.6 kB / 1.315 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/2.319, allocations: 94.83 kB / 1.315 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/2.321, allocations: 0.7558 MB / 1.316 GB, free: 9.613 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/2.321, allocations: 7.984 kB / 1.316 GB, free: 9.605 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/2.321, allocations: 4 kB / 1.316 GB, free: 9.602 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/2.321, allocations: 0 / 1.316 GB, free: 9.602 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/2.323, allocations: 1.622 MB / 1.317 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/2.323, allocations: 4 kB / 1.317 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/2.323, allocations: 96 kB / 1.317 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.844e-06/2.323, allocations: 0 / 1.317 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/2.323, allocations: 23.94 kB / 1.318 GB, free: 7.789 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004861/2.324, allocations: 1.766 MB / 1.319 GB, free: 5.953 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/2.324, allocations: 4.031 kB / 1.319 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/2.325, allocations: 1.275 MB / 1.32 GB, free: 4.617 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003437/2.326, allocations: 235.8 kB / 1.321 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/2.326, allocations: 12 kB / 1.321 GB, free: 4.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005809/2.326, allocations: 87.83 kB / 1.321 GB, free: 4.27 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/2.326, allocations: 43.92 kB / 1.321 GB, free: 4.227 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/2.326, allocations: 23.98 kB / 1.321 GB, free: 4.203 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0005941/2.327, allocations: 0.5631 MB / 1.321 GB, free: 3.629 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8.02e-07/2.327, allocations: 0 / 1.321 GB, free: 3.629 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001512/2.329, allocations: 0.4953 MB / 1.322 GB, free: 3.133 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.000843/2.329, allocations: 493.2 kB / 1.322 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001869/2.331, allocations: 1.011 MB / 1.323 GB, free: 1.621 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/2.331, allocations: 4.875 kB / 1.323 GB, free: 1.617 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005522/2.332, allocations: 355.2 kB / 1.324 GB, free: 1.258 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/2.334, allocations: 369.8 kB / 1.324 GB, free: 0.8984 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4118/2.745, allocations: 1.736 MB / 1.326 GB, free: 168.2 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007125/2.746, allocations: 1.019 MB / 1.327 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0009653/2.747, allocations: 149.3 kB / 1.327 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/2.747, allocations: 67.83 kB / 1.327 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of SimCode: time 1.192e-06/2.747, allocations: 6.031 kB / 1.327 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of Templates: time 0.03461/2.782, allocations: 16.93 MB / 1.343 GB, free: 167.4 MB / 0.6823 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)