Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.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.001366/0.001366, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.001212/0.001212, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 18.57 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 0.9964/0.9964, allocations: 177.2 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.009573/0.009573, allocations: 1.206 MB / 261.5 MB, free: 11.77 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/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(ElectricBraking.Examples.Rotational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") translateModel(ElectricBraking.Examples.Rotational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 278.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.476e-05/2.632e-05, allocations: 2.312 kB / 278.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.003547/0.003573, allocations: 2.49 MB / 280.9 MB, free: 8.359 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.004783, allocations: 0.9541 MB / 281.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.004903, allocations: 3.938 kB / 281.8 MB, free: 7.395 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004397/0.005343, allocations: 91.34 kB / 281.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002438/0.005586, allocations: 115.1 kB / 282 MB, free: 7.191 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.005764, allocations: 103.8 kB / 282.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002945/0.006059, allocations: 363.3 kB / 282.5 MB, free: 6.734 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.006176, allocations: 47.19 kB / 282.5 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.006448, allocations: 219.5 kB / 282.7 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.006622, allocations: 131.7 kB / 282.9 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.291e-05/0.006655, allocations: 24 kB / 282.9 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.00676, allocations: 83.84 kB / 283 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.311e-05/0.006843, allocations: 71.8 kB / 283 MB, free: 6.168 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.445e-05/0.006918, allocations: 95.73 kB / 283.1 MB, free: 6.074 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.007212, allocations: 283 kB / 283.4 MB, free: 5.797 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.007215, allocations: 0 / 283.4 MB, free: 5.797 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.007217, allocations: 0 / 283.4 MB, free: 5.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.007221, allocations: 0 / 283.4 MB, free: 5.797 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0005841/0.007805, allocations: 495.7 kB / 283.9 MB, free: 5.289 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.007836, allocations: 12.03 kB / 283.9 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/0.007887, allocations: 32.91 kB / 283.9 MB, free: 5.246 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.008113, allocations: 199 kB / 284.1 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.008136, allocations: 24.81 kB / 284.2 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.008168, allocations: 24.33 kB / 284.2 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.008411, allocations: 211.8 kB / 284.4 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.008422, allocations: 192 / 284.4 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.00844, allocations: 12.38 kB / 284.4 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.008446, allocations: 7.938 kB / 284.4 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.008596, allocations: 101.5 kB / 284.5 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000795/0.009391, allocations: 0.7035 MB / 285.2 MB, free: 3.891 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.009545, allocations: 114.4 kB / 285.3 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.391e-05/0.009599, allocations: 40.86 kB / 285.4 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.00962, allocations: 7.984 kB / 285.4 MB, free: 3.719 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.00964, allocations: 34.56 kB / 285.4 MB, free: 3.676 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.202e-06/0.009641, allocations: 0 / 285.4 MB, free: 3.676 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006802/0.01032, allocations: 309.4 kB / 285.7 MB, free: 3.367 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.01035, allocations: 55.41 kB / 285.8 MB, free: 3.301 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.01049, allocations: 219.8 kB / 286 MB, free: 3.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.01051, allocations: 33.7 kB / 286 MB, free: 3.031 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.861e-05/0.01057, allocations: 148.3 kB / 286.1 MB, free: 2.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.01061, allocations: 79.34 kB / 286.2 MB, free: 2.805 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/0.01067, allocations: 49.97 kB / 286.3 MB, free: 2.746 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.01075, allocations: 338.8 kB / 286.6 MB, free: 2.406 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.139e-05/0.01081, allocations: 40.55 kB / 286.6 MB, free: 2.367 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.368e-05/0.01089, allocations: 113.6 kB / 286.8 MB, free: 2.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.01103, allocations: 145 kB / 286.9 MB, free: 2.062 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.01104, allocations: 4 kB / 286.9 MB, free: 2.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000264/0.0113, allocations: 206.7 kB / 287.1 MB, free: 1.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.01132, allocations: 11.12 kB / 287.1 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.01132, allocations: 0 / 287.1 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/0.01154, allocations: 125 kB / 287.2 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.01166, allocations: 43.92 kB / 287.3 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003453/0.012, allocations: 0.5929 MB / 287.9 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.01212, allocations: 39.83 kB / 287.9 MB, free: 1.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.01214, allocations: 11.98 kB / 287.9 MB, free: 1 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 8.515e-05/0.01223, allocations: 128.6 kB / 288 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.504e-05/0.01226, allocations: 15.98 kB / 288.1 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.0123, allocations: 29.95 kB / 288.1 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.0123, allocations: 4 kB / 288.1 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.0123, allocations: 0 / 288.1 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.01231, allocations: 11.95 kB / 288.1 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005039/0.01281, allocations: 406.6 kB / 288.5 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01282, allocations: 0 / 288.5 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.01292, allocations: 35.91 kB / 288.5 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.01309, allocations: 120.8 kB / 288.7 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.01311, allocations: 11.92 kB / 288.7 MB, free: 212 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1081/0.1212, allocations: 0.5757 MB / 289.2 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1212, allocations: 0 / 289.2 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004444/0.1217, allocations: 322.1 kB / 289.6 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.773e-05/0.1218, allocations: 31.75 kB / 289.6 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.1218, allocations: 10.67 kB / 289.6 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1219, allocations: 23.78 kB / 289.6 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.078e-05/0.122, allocations: 44.14 kB / 289.7 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.122, allocations: 8.891 kB / 289.7 MB, free: 23.62 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.489e-05/0.1221, allocations: 66.77 kB / 289.7 MB, free: 23.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1221, allocations: 0.5312 kB / 289.7 MB, free: 23.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002692/0.1224, allocations: 70.08 kB / 289.8 MB, free: 23.61 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaLoad.w,integrator.y,heatCapacitor.T,brake.phi) * Number of discrete variables: 5 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 3 (brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009732/0.1233, allocations: 456 kB / 290.3 MB, free: 23.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003161/0.1237, allocations: 148.2 kB / 290.4 MB, free: 23.51 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.1237, allocations: 2.25 kB / 290.4 MB, free: 23.51 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.1238, allocations: 90.22 kB / 290.5 MB, free: 23.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002448/0.124, allocations: 53.92 kB / 290.5 MB, free: 23.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.1255, allocations: 0.7559 MB / 291.3 MB, free: 23.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.514e-05/0.1256, allocations: 83.12 kB / 291.4 MB, free: 23.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.755e-05/0.1256, allocations: 21.53 kB / 291.4 MB, free: 23.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.1257, allocations: 89.55 kB / 291.5 MB, free: 23.12 MB / 266.7 MB Notification: Performance of SimCode: time 9.11e-07/0.1257, allocations: 0 / 291.5 MB, free: 23.12 MB / 266.7 MB Notification: Performance of Templates: time 0.007798/0.1335, allocations: 4.872 MB / 296.4 MB, free: 22.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.812392753083259]