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.0006593/0.0006593, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009297/0.001589, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007398/0.0007398, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008685/0.001608, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.022/1.022, allocations: 177.2 MB / 189.6 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08487/1.107, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.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.007002/0.007002, allocations: 1.198 MB / 245.2 MB, free: 13.72 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001704/0.008706, allocations: 0.8149 MB / 246 MB, free: 12.91 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.623e-06/1.623e-06, allocations: 0 / 247.2 MB, free: 11.63 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.26e-05/2.423e-05, allocations: 2.312 kB / 247.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.004132/0.004156, allocations: 2.495 MB / 249.7 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.005928, allocations: 0.9578 MB / 250.7 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.006088, allocations: 7.938 kB / 250.7 MB, free: 8.141 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003583/0.006447, allocations: 83.39 kB / 250.8 MB, free: 8.059 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.00674, allocations: 119.1 kB / 250.9 MB, free: 7.941 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.006992, allocations: 103.8 kB / 251 MB, free: 7.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004519/0.007444, allocations: 355.3 kB / 251.4 MB, free: 7.492 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.007583, allocations: 47.16 kB / 251.4 MB, free: 7.441 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004456/0.008028, allocations: 243.5 kB / 251.6 MB, free: 7.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.008268, allocations: 131.7 kB / 251.8 MB, free: 7.074 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.013e-05/0.008318, allocations: 28 kB / 251.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.008473, allocations: 79.84 kB / 251.9 MB, free: 6.969 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.008575, allocations: 47.88 kB / 251.9 MB, free: 6.922 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.008686, allocations: 71.81 kB / 252 MB, free: 6.852 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.009094, allocations: 255.1 kB / 252.2 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.772e-05/0.009112, allocations: 0 / 252.2 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.009113, allocations: 0 / 252.2 MB, free: 6.602 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.009131, allocations: 0 / 252.2 MB, free: 6.602 MB / 250.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.0009191/0.01005, allocations: 0.5501 MB / 252.8 MB, free: 6.027 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.01008, allocations: 11.98 kB / 252.8 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.567e-05/0.01017, allocations: 32.91 kB / 252.8 MB, free: 5.984 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.01051, allocations: 199 kB / 253 MB, free: 5.762 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.01054, allocations: 16.88 kB / 253 MB, free: 5.746 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.018e-05/0.01059, allocations: 24.33 kB / 253.1 MB, free: 5.723 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.01094, allocations: 219.8 kB / 253.3 MB, free: 5.492 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.01096, allocations: 192 / 253.3 MB, free: 5.492 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.01098, allocations: 4.375 kB / 253.3 MB, free: 5.488 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.011, allocations: 11.94 kB / 253.3 MB, free: 5.477 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.01122, allocations: 97.11 kB / 253.4 MB, free: 5.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.01244, allocations: 0.715 MB / 254.1 MB, free: 4.625 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002237/0.01266, allocations: 98.47 kB / 254.2 MB, free: 4.52 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.712e-05/0.01275, allocations: 44.84 kB / 254.3 MB, free: 4.473 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.01277, allocations: 4 kB / 254.3 MB, free: 4.469 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.0128, allocations: 30.56 kB / 254.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.023e-06/0.0128, allocations: 0 / 254.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001057/0.01386, allocations: 318.4 kB / 254.6 MB, free: 4.109 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.01389, allocations: 51.41 kB / 254.6 MB, free: 4.047 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.01411, allocations: 219.9 kB / 254.9 MB, free: 3.816 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.01414, allocations: 33.7 kB / 254.9 MB, free: 3.777 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.668e-05/0.01423, allocations: 136.4 kB / 255 MB, free: 3.641 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.005e-05/0.0143, allocations: 75.39 kB / 255.1 MB, free: 3.566 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.475e-05/0.01439, allocations: 61.91 kB / 255.2 MB, free: 3.496 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.0145, allocations: 334.8 kB / 255.5 MB, free: 3.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.0146, allocations: 36.55 kB / 255.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.01472, allocations: 106.8 kB / 255.6 MB, free: 2.996 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.01494, allocations: 153 kB / 255.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.01495, allocations: 0 / 255.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004195/0.01537, allocations: 214.7 kB / 256 MB, free: 2.602 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.01539, allocations: 4 kB / 256 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.01539, allocations: 4 kB / 256 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003279/0.01572, allocations: 129 kB / 256.1 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.01593, allocations: 47.91 kB / 256.2 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004897/0.01642, allocations: 0.5851 MB / 256.8 MB, free: 1.805 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.01662, allocations: 43.84 kB / 256.8 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.01664, allocations: 4 kB / 256.8 MB, free: 1.758 MB / 250.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 0.000131/0.01677, allocations: 135.9 kB / 256.9 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.01684, allocations: 19.98 kB / 257 MB, free: 1.598 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.01696, allocations: 29.95 kB / 257 MB, free: 1.57 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.01696, allocations: 7.984 kB / 257 MB, free: 1.562 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.01697, allocations: 0 / 257 MB, free: 1.562 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.01697, allocations: 7.938 kB / 257 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006762/0.01765, allocations: 407.6 kB / 257.4 MB, free: 1.129 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.01765, allocations: 0 / 257.4 MB, free: 1.129 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.01779, allocations: 35.92 kB / 257.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.95e-05/0.01785, allocations: 35.77 kB / 257.5 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.01802, allocations: 116.8 kB / 257.6 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.01804, allocations: 7.984 kB / 257.6 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003034/0.01834, allocations: 0.584 MB / 258.2 MB, free: 328 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01835, allocations: 0 / 258.2 MB, free: 328 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000332/0.01868, allocations: 330.3 kB / 258.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.01872, allocations: 8 kB / 258.5 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.743e-05/0.01881, allocations: 23.97 kB / 258.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.01888, allocations: 39.91 kB / 258.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.01889, allocations: 7.938 kB / 258.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.44e-05/0.01895, allocations: 74.16 kB / 258.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01895, allocations: 4 kB / 258.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002184/0.01917, allocations: 71.88 kB / 258.7 MB, free: 15.75 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.0009829/0.02015, allocations: 497.6 kB / 259.2 MB, free: 15.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00025/0.0204, allocations: 148.9 kB / 259.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.02041, allocations: 4 kB / 259.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.481e-05/0.0205, allocations: 89.52 kB / 259.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.02073, allocations: 81.11 kB / 259.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003149/0.02388, allocations: 0.7559 MB / 260.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.563e-05/0.02393, allocations: 84.31 kB / 260.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.594e-05/0.02398, allocations: 17.95 kB / 260.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.02409, allocations: 83.36 kB / 260.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02409, allocations: 4 kB / 260.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of Templates: time 0.00665/0.03074, allocations: 4.962 MB / 265.4 MB, free: 9.266 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 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6862269956618547]