Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.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.0008735/0.0008735, allocations: 92.22 kB / 19.65 MB, free: 276 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.0008903/0.0008903, allocations: 173 kB / 23.03 MB, free: 1.543 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.9073/0.9073, allocations: 177.1 MB / 203.4 MB, free: 5.625 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.005092/0.005092, allocations: 1.19 MB / 261.1 MB, free: 11.89 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.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") translateModel(ElectricBraking.Examples.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 331.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.436e-05/1.563e-05, allocations: 4.562 kB / 331.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.004181/0.004196, allocations: 4.094 MB / 335.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.005782, allocations: 1.351 MB / 336.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.006008, allocations: 15.88 kB / 336.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005596/0.006567, allocations: 194.6 kB / 336.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003108/0.006878, allocations: 202.3 kB / 337 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.007062, allocations: 111.8 kB / 337.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004958/0.007558, allocations: 0.6296 MB / 337.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.007822, allocations: 156.1 kB / 337.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003987/0.008221, allocations: 367.1 kB / 338.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.008465, allocations: 187.4 kB / 338.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.885e-05/0.008523, allocations: 56 kB / 338.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.008638, allocations: 71.98 kB / 338.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.802e-05/0.008696, allocations: 111.5 kB / 338.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.00885, allocations: 199.5 kB / 338.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004672/0.009317, allocations: 410.4 kB / 339.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.00932, allocations: 0 / 339.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.00932, allocations: 0 / 339.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.009326, allocations: 0 / 339.2 MB, free: 10.14 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.0009262/0.01025, allocations: 0.8308 MB / 340.1 MB, free: 9.273 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.01029, allocations: 8.031 kB / 340.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.01053, allocations: 104.5 kB / 340.2 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.01094, allocations: 315.2 kB / 340.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.737e-05/0.01098, allocations: 29.38 kB / 340.5 MB, free: 8.793 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.01109, allocations: 52.55 kB / 340.6 MB, free: 8.742 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.01164, allocations: 419.8 kB / 341 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.01166, allocations: 12.12 kB / 341 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.0117, allocations: 24.12 kB / 341 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.01171, allocations: 8 kB / 341 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.01205, allocations: 170.8 kB / 341.2 MB, free: 8.086 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.01369, allocations: 1.583 MB / 342.8 MB, free: 6.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.01402, allocations: 174.9 kB / 342.9 MB, free: 6.246 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.01412, allocations: 63.66 kB / 343 MB, free: 6.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.01414, allocations: 4 kB / 343 MB, free: 6.176 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.01416, allocations: 49.31 kB / 343.1 MB, free: 6.117 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.654e-06/0.01416, allocations: 0 / 343.1 MB, free: 6.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0005237/0.01469, allocations: 236.1 kB / 343.3 MB, free: 5.879 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.84e-05/0.0147, allocations: 55.41 kB / 343.3 MB, free: 5.812 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.01496, allocations: 362.2 kB / 343.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.01498, allocations: 29.7 kB / 343.7 MB, free: 5.406 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.0151, allocations: 322.9 kB / 344 MB, free: 5.082 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.054e-05/0.01515, allocations: 91.23 kB / 344.1 MB, free: 4.992 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.533e-05/0.01522, allocations: 63.36 kB / 344.2 MB, free: 4.922 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.269e-05/0.01528, allocations: 0.5157 MB / 344.7 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.668e-05/0.01537, allocations: 39.91 kB / 344.7 MB, free: 4.355 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.0155, allocations: 179.8 kB / 344.9 MB, free: 4.117 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.01575, allocations: 250.8 kB / 345.2 MB, free: 3.816 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-06/0.01575, allocations: 0 / 345.2 MB, free: 3.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003878/0.01614, allocations: 287.1 kB / 345.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.01615, allocations: 7.125 kB / 345.5 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.01616, allocations: 4 kB / 345.5 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001401/0.0163, allocations: 28.08 kB / 345.5 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.01651, allocations: 75.84 kB / 345.6 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006278/0.01714, allocations: 1.736 MB / 347.3 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.01729, allocations: 27.8 kB / 347.3 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.01731, allocations: 16 kB / 347.3 MB, free: 1.508 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 2 (switch.control,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.01741, allocations: 176.6 kB / 347.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.01747, allocations: 43.75 kB / 347.6 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.331e-05/0.01752, allocations: 34.45 kB / 347.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.01752, allocations: 4 kB / 347.6 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.01752, allocations: 0 / 347.6 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.01753, allocations: 3.984 kB / 347.6 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000663/0.01819, allocations: 0.6033 MB / 348.2 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01819, allocations: 0 / 348.2 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.0184, allocations: 55.91 kB / 348.3 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.295e-05/0.01846, allocations: 19.69 kB / 348.3 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.01848, allocations: 12 kB / 348.3 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007843/0.01926, allocations: 1.732 MB / 350 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01926, allocations: 0 / 350 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004621/0.01973, allocations: 393.3 kB / 350.4 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-05/0.01982, allocations: 59.67 kB / 350.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.01986, allocations: 12.06 kB / 350.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.02001, allocations: 15.92 kB / 350.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.02006, allocations: 19.97 kB / 350.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.02007, allocations: 4 kB / 350.5 MB, free: 14.13 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002053/0.02028, allocations: 239 kB / 350.7 MB, free: 13.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02028, allocations: 0 / 350.7 MB, free: 13.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004217/0.0207, allocations: 119.7 kB / 350.9 MB, free: 13.78 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.phi,dcpm.armatureInductance.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.511e-05/0.02079, allocations: 103.2 kB / 351 MB, free: 13.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004588/0.02125, allocations: 326 kB / 351.3 MB, free: 13.33 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.02125, allocations: 0 / 351.3 MB, free: 13.33 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.02147, allocations: 253.3 kB / 351.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.02175, allocations: 68.39 kB / 351.6 MB, free: 13 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.02297, allocations: 0.8827 MB / 352.5 MB, free: 12.08 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.195e-05/0.02304, allocations: 108.6 kB / 352.6 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.209e-05/0.02312, allocations: 30.97 kB / 352.6 MB, free: 11.92 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.02316, allocations: 24.5 kB / 352.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02316, allocations: 0 / 352.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of Templates: time 0.005617/0.02878, allocations: 3.7 MB / 356.3 MB, free: 8.273 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8907894962467253]