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.00159/0.00159, allocations: 93.06 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.001712/0.001712, allocations: 169 kB / 23.02 MB, free: 1.547 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 1.007/1.007, 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.004874/0.004874, allocations: 1.19 MB / 261.1 MB, free: 11.88 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.774e-06/1.774e-06, allocations: 0 / 331.1 MB, free: 18.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.61e-05/1.787e-05, allocations: 8.562 kB / 331.1 MB, free: 18.27 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.003813/0.003831, allocations: 4.082 MB / 335.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.005442, allocations: 1.347 MB / 336.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.005674, allocations: 15.88 kB / 336.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000525/0.006199, allocations: 194.6 kB / 336.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.006443, allocations: 202.3 kB / 337 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.006602, allocations: 111.8 kB / 337.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004169/0.007018, allocations: 0.6296 MB / 337.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002266/0.007245, allocations: 160.1 kB / 337.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004467/0.007692, allocations: 363.1 kB / 338.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.007908, allocations: 187.4 kB / 338.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.941e-05/0.007957, allocations: 52 kB / 338.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.008078, allocations: 67.98 kB / 338.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.314e-05/0.008131, allocations: 123.5 kB / 338.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.008258, allocations: 195.5 kB / 338.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004254/0.008683, allocations: 406.4 kB / 339.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.008686, allocations: 0 / 339.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.008686, allocations: 4 kB / 339.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.008693, allocations: 0 / 339.2 MB, free: 10.13 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.0007626/0.009455, allocations: 0.8269 MB / 340.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.009494, allocations: 12.03 kB / 340.1 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.009671, allocations: 108.5 kB / 340.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.00997, allocations: 303.2 kB / 340.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.01, allocations: 41.36 kB / 340.5 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.441e-05/0.01009, allocations: 48.56 kB / 340.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.01049, allocations: 423.8 kB / 341 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.01051, allocations: 8.141 kB / 341 MB, free: 8.277 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.01053, allocations: 28.11 kB / 341 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.01055, allocations: 8 kB / 341 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002429/0.01079, allocations: 165.8 kB / 341.2 MB, free: 8.078 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.01215, allocations: 1.579 MB / 342.8 MB, free: 6.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002635/0.01242, allocations: 182.9 kB / 342.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.551e-05/0.01249, allocations: 66.08 kB / 343 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.0125, allocations: 7.984 kB / 343 MB, free: 6.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.01252, allocations: 41.33 kB / 343.1 MB, free: 6.109 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.01253, allocations: 0 / 343.1 MB, free: 6.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0004097/0.01294, allocations: 233.4 kB / 343.3 MB, free: 5.871 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.788e-05/0.01295, allocations: 59.41 kB / 343.3 MB, free: 5.801 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.01314, allocations: 350.2 kB / 343.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.01316, allocations: 33.7 kB / 343.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.01325, allocations: 326.9 kB / 344 MB, free: 5.074 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.01329, allocations: 87.23 kB / 344.1 MB, free: 4.988 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.01334, allocations: 67.36 kB / 344.2 MB, free: 4.914 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.0134, allocations: 0.5117 MB / 344.7 MB, free: 4.391 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.948e-05/0.01346, allocations: 47.91 kB / 344.7 MB, free: 4.344 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.01356, allocations: 175.8 kB / 344.9 MB, free: 4.109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.01374, allocations: 244.7 kB / 345.2 MB, free: 3.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.01374, allocations: 4 kB / 345.2 MB, free: 3.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002672/0.01401, allocations: 283.1 kB / 345.4 MB, free: 3.523 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.01403, allocations: 8 kB / 345.4 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.01403, allocations: 4 kB / 345.5 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001319/0.01416, allocations: 27.67 kB / 345.5 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.0143, allocations: 71.84 kB / 345.5 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005627/0.01487, allocations: 1.736 MB / 347.3 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.559e-05/0.01496, allocations: 31.8 kB / 347.3 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.01498, allocations: 12 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.0001049/0.01508, allocations: 176.5 kB / 347.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.01512, allocations: 43.75 kB / 347.5 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.01516, allocations: 38.58 kB / 347.6 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.01516, allocations: 4 kB / 347.6 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.01517, allocations: 4 kB / 347.6 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.01517, allocations: 3.984 kB / 347.6 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.01563, allocations: 0.6003 MB / 348.2 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.01564, allocations: 0 / 348.2 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.01577, allocations: 55.91 kB / 348.2 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.246e-05/0.01582, allocations: 15.69 kB / 348.3 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.01583, allocations: 8 kB / 348.3 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006044/0.01644, allocations: 1.743 MB / 350 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01644, allocations: 0 / 350 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/0.01678, allocations: 396.4 kB / 350.4 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.314e-05/0.01684, allocations: 55.69 kB / 350.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.01686, allocations: 7.938 kB / 350.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-05/0.01695, allocations: 20.05 kB / 350.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.017, allocations: 19.97 kB / 350.5 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.01701, allocations: 4 kB / 350.5 MB, free: 14.12 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001448/0.01715, allocations: 239 kB / 350.7 MB, free: 13.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01715, allocations: 0 / 350.7 MB, free: 13.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002709/0.01742, allocations: 115.7 kB / 350.9 MB, free: 13.77 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.083e-05/0.01751, allocations: 103.2 kB / 351 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003654/0.01788, allocations: 330.2 kB / 351.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01788, allocations: 0 / 351.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.01803, allocations: 253.3 kB / 351.5 MB, free: 13.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.01832, allocations: 61.19 kB / 351.6 MB, free: 12.99 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.01969, allocations: 0.8827 MB / 352.5 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.822e-05/0.01975, allocations: 104.6 kB / 352.6 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.161e-05/0.01985, allocations: 38.94 kB / 352.6 MB, free: 11.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5e-05/0.0199, allocations: 24.5 kB / 352.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.0199, allocations: 4 kB / 352.6 MB, free: 11.88 MB / 282.7 MB Notification: Performance of Templates: time 0.005992/0.02589, allocations: 3.695 MB / 356.3 MB, free: 8.27 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.9970766440965235]