Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 104.3 kB / 19.72 MB, free: 420 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 217 kB / 23.02 MB, free: 2.961 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.634/1.634, allocations: 230.6 MB / 256.8 MB, free: 9.578 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 3.561/3.561, allocations: 0.5045 GB / 0.8104 GB, free: 2.785 MB / 0.6511 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00431/0.00431, allocations: 67.89 kB / 1.177 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9759/0.9802, allocations: 180 MB / 1.353 GB, free: 1.609 MB / 1.026 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.03133/1.012, allocations: 21.46 MB / 1.374 GB, free: 12.07 MB / 1.057 GB Notification: Performance of NFInst.instExpressions: time 0.01175/1.023, allocations: 5.905 MB / 1.38 GB, free: 6.148 MB / 1.057 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/1.024, allocations: 35.69 kB / 1.38 GB, free: 6.113 MB / 1.057 GB Notification: Performance of NFTyping.typeComponents: time 0.001136/1.026, allocations: 385.5 kB / 1.38 GB, free: 5.734 MB / 1.057 GB Notification: Performance of NFTyping.typeBindings: time 0.003467/1.029, allocations: 1.143 MB / 1.381 GB, free: 4.586 MB / 1.057 GB Notification: Performance of NFTyping.typeClassSections: time 0.003211/1.032, allocations: 1.085 MB / 1.382 GB, free: 3.512 MB / 1.057 GB Notification: Performance of NFFlatten.flatten: time 0.003543/1.036, allocations: 1.925 MB / 1.384 GB, free: 1.582 MB / 1.057 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/1.037, allocations: 0.5711 MB / 1.385 GB, free: 0.9961 MB / 1.057 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/1.039, allocations: 0.8912 MB / 1.386 GB, free: 104 kB / 1.057 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/1.04, allocations: 0.6768 MB / 1.386 GB, free: 15.42 MB / 1.073 GB Notification: Performance of NFPackage.collectConstants: time 0.0001449/1.04, allocations: 75.94 kB / 1.386 GB, free: 15.35 MB / 1.073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/1.042, allocations: 0.819 MB / 1.387 GB, free: 14.53 MB / 1.073 GB Notification: Performance of NFScalarize.scalarize: time 0.0002765/1.042, allocations: 219.1 kB / 1.387 GB, free: 14.31 MB / 1.073 GB Notification: Performance of NFVerifyModel.verify: time 0.0005457/1.043, allocations: 405.8 kB / 1.388 GB, free: 13.91 MB / 1.073 GB Notification: Performance of NFConvertDAE.convert: time 0.002623/1.045, allocations: 1.471 MB / 1.389 GB, free: 12.44 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/1.045, allocations: 0 / 1.389 GB, free: 12.44 MB / 1.073 GB Notification: Performance of FrontEnd: time 1.883e-06/1.045, allocations: 0 / 1.389 GB, free: 12.44 MB / 1.073 GB Notification: Performance of Transformations before backend: time 2.412e-05/1.045, allocations: 0 / 1.389 GB, free: 12.44 MB / 1.073 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.002637/1.048, allocations: 1.343 MB / 1.39 GB, free: 11.05 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/1.048, allocations: 20.88 kB / 1.39 GB, free: 11.03 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001297/1.049, allocations: 172.1 kB / 1.391 GB, free: 10.86 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/1.051, allocations: 0.62 MB / 1.391 GB, free: 10.22 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.328e-05/1.051, allocations: 49.31 kB / 1.391 GB, free: 10.17 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/1.051, allocations: 60 kB / 1.391 GB, free: 10.11 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/1.052, allocations: 0.8464 MB / 1.392 GB, free: 9.195 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/1.052, allocations: 0 / 1.392 GB, free: 9.195 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.087e-05/1.053, allocations: 28 kB / 1.392 GB, free: 9.168 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/1.053, allocations: 12 kB / 1.392 GB, free: 9.156 MB / 1.073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/1.054, allocations: 0.5377 MB / 1.393 GB, free: 8.613 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004821/1.058, allocations: 2.266 MB / 1.395 GB, free: 6.273 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009125/1.059, allocations: 384.9 kB / 1.395 GB, free: 5.883 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004296/1.06, allocations: 230.5 kB / 1.395 GB, free: 5.648 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001971/1.06, allocations: 35.97 kB / 1.396 GB, free: 5.613 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007698/1.061, allocations: 442.5 kB / 1.396 GB, free: 5.129 MB / 1.073 GB Notification: Performance of pre-optimization done (n=37): time 2.374e-06/1.061, allocations: 0 / 1.396 GB, free: 5.129 MB / 1.073 GB Notification: Performance of matching and sorting (n=37): time 0.001835/1.063, allocations: 0.8116 MB / 1.397 GB, free: 4.293 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001939/1.063, allocations: 247.5 kB / 1.397 GB, free: 3.996 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/1.064, allocations: 0.7317 MB / 1.398 GB, free: 3.25 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 8.395e-05/1.064, allocations: 37.7 kB / 1.398 GB, free: 3.207 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004671/1.065, allocations: 436.6 kB / 1.398 GB, free: 2.777 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/1.065, allocations: 139.1 kB / 1.398 GB, free: 2.641 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002435/1.065, allocations: 126.3 kB / 1.398 GB, free: 2.512 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0001936/1.065, allocations: 326 kB / 1.399 GB, free: 2.188 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000527/1.066, allocations: 265.1 kB / 1.399 GB, free: 1.918 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008923/1.067, allocations: 0.6667 MB / 1.4 GB, free: 1.125 MB / 1.073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/1.068, allocations: 0.5804 MB / 1.4 GB, free: 0.5 MB / 1.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/1.068, allocations: 3.938 kB / 1.4 GB, free: 0.4961 MB / 1.073 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001659/1.07, allocations: 0.8089 MB / 1.401 GB, free: 15.67 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 6.588e-05/1.07, allocations: 44.19 kB / 1.401 GB, free: 15.62 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/1.07, allocations: 4 kB / 1.401 GB, free: 15.62 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/1.07, allocations: 4 kB / 1.401 GB, free: 15.61 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.071, allocations: 184 kB / 1.401 GB, free: 15.43 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/1.072, allocations: 1.774 MB / 1.403 GB, free: 13.59 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007954/1.073, allocations: 87.84 kB / 1.403 GB, free: 13.5 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/1.073, allocations: 27.98 kB / 1.403 GB, free: 13.48 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008598/1.074, allocations: 427 kB / 1.403 GB, free: 13.05 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008933/1.075, allocations: 0.6688 MB / 1.404 GB, free: 12.24 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001197/1.076, allocations: 0.5807 MB / 1.405 GB, free: 11.61 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.646e-06/1.076, allocations: 0 / 1.405 GB, free: 11.61 MB / 1.089 GB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001582/1.078, allocations: 0.8004 MB / 1.405 GB, free: 10.79 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 5.275e-05/1.078, allocations: 41.69 kB / 1.405 GB, free: 10.74 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.078, allocations: 4 kB / 1.405 GB, free: 10.73 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/1.078, allocations: 8.375 kB / 1.405 GB, free: 10.73 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006785/1.078, allocations: 135.8 kB / 1.406 GB, free: 10.59 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/1.078, allocations: 8 kB / 1.406 GB, free: 10.59 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007529/1.079, allocations: 75.67 kB / 1.406 GB, free: 10.51 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/1.079, allocations: 27.98 kB / 1.406 GB, free: 10.48 MB / 1.089 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 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003104/1.08, allocations: 253.8 kB / 1.406 GB, free: 10.22 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/1.08, allocations: 87.44 kB / 1.406 GB, free: 10.14 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001682/1.081, allocations: 0.7539 MB / 1.407 GB, free: 9.359 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/1.081, allocations: 8 kB / 1.407 GB, free: 9.352 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.081, allocations: 0 / 1.407 GB, free: 9.352 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/1.081, allocations: 3.984 kB / 1.407 GB, free: 9.348 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/1.084, allocations: 1.477 MB / 1.408 GB, free: 7.812 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/1.084, allocations: 0 / 1.408 GB, free: 7.812 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005569/1.085, allocations: 95.86 kB / 1.408 GB, free: 7.719 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/1.085, allocations: 4 kB / 1.408 GB, free: 7.715 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/1.085, allocations: 8 kB / 1.408 GB, free: 7.707 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001304/1.086, allocations: 1.778 MB / 1.41 GB, free: 5.859 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/1.086, allocations: 4.031 kB / 1.41 GB, free: 5.855 MB / 1.089 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/1.088, allocations: 1.258 MB / 1.411 GB, free: 4.555 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003443/1.089, allocations: 131.3 kB / 1.411 GB, free: 4.426 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/1.089, allocations: 16 kB / 1.411 GB, free: 4.41 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005663/1.089, allocations: 35.95 kB / 1.411 GB, free: 4.375 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/1.09, allocations: 51.98 kB / 1.412 GB, free: 4.324 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/1.09, allocations: 15.98 kB / 1.412 GB, free: 4.309 MB / 1.089 GB Notification: Performance of sorting global known variables: time 0.0007338/1.09, allocations: 0.4911 MB / 1.412 GB, free: 3.824 MB / 1.089 GB Notification: Performance of sort global known variables: time 8.1e-08/1.09, allocations: 0 / 1.412 GB, free: 3.824 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.001532/1.092, allocations: 478.8 kB / 1.412 GB, free: 3.355 MB / 1.089 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 (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007006/1.093, allocations: 317.1 kB / 1.413 GB, free: 3.039 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.002824/1.095, allocations: 1.101 MB / 1.414 GB, free: 1.895 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/1.095, allocations: 0 / 1.414 GB, free: 1.895 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.0007838/1.096, allocations: 369 kB / 1.414 GB, free: 1.516 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/1.098, allocations: 259.5 kB / 1.414 GB, free: 1.262 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00298/1.101, allocations: 1.49 MB / 1.416 GB, free: 15.71 MB / 1.104 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/1.101, allocations: 403.2 kB / 1.416 GB, free: 15.29 MB / 1.104 GB Notification: Performance of simCode: alias equations: time 0.0007408/1.102, allocations: 149.1 kB / 1.416 GB, free: 15.14 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/1.102, allocations: 63.41 kB / 1.417 GB, free: 15.08 MB / 1.104 GB Notification: Performance of SimCode: time 9.81e-07/1.102, allocations: 0 / 1.417 GB, free: 15.08 MB / 1.104 GB Notification: Performance of Templates: time 0.03441/1.137, allocations: 17.62 MB / 1.434 GB, free: 13.75 MB / 1.12 GB " [Timeout remaining time 299] make -j1 -f Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile [Timeout 300] (rm -f Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=240 -lv LOG_STATS > Buildings_13_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 11.286289396695793]