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.0009853/0.0009853, allocations: 88.52 kB / 19.94 MB, free: 4.605 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.0009562/0.0009562, allocations: 173.9 kB / 23.21 MB, free: 1.328 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.9607/0.9607, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.005436/0.005436, allocations: 1.19 MB / 261.1 MB, free: 12.09 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 2.094e-06/2.094e-06, allocations: 4 kB / 383.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.935e-05/2.144e-05, allocations: 4.953 kB / 383.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.003418/0.00344, allocations: 3.755 MB / 387.3 MB, free: 10.17 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.004827, allocations: 1.285 MB / 388.6 MB, free: 8.879 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.005013, allocations: 15.94 kB / 388.6 MB, free: 8.863 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004649/0.005478, allocations: 190.5 kB / 388.8 MB, free: 8.676 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.005687, allocations: 206.4 kB / 389 MB, free: 8.473 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001342/0.005821, allocations: 115.8 kB / 389.1 MB, free: 8.359 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.00622, allocations: 0.6219 MB / 389.7 MB, free: 7.734 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002223/0.006442, allocations: 156.1 kB / 389.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.006769, allocations: 359.1 kB / 390.2 MB, free: 7.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.00695, allocations: 175.4 kB / 390.4 MB, free: 7.059 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.006996, allocations: 60 kB / 390.4 MB, free: 7 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.007098, allocations: 79.91 kB / 390.5 MB, free: 6.922 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.635e-05/0.007154, allocations: 111.5 kB / 390.6 MB, free: 6.812 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.007282, allocations: 191.5 kB / 390.8 MB, free: 6.625 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004674/0.007749, allocations: 0.6269 MB / 391.4 MB, free: 5.996 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.007752, allocations: 0 / 391.4 MB, free: 5.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.007753, allocations: 0 / 391.4 MB, free: 5.996 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.007759, allocations: 0 / 391.4 MB, free: 5.996 MB / 314.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.0007741/0.008533, allocations: 0.7231 MB / 392.2 MB, free: 5.242 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.008565, allocations: 8.031 kB / 392.2 MB, free: 5.234 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.008711, allocations: 76.55 kB / 392.2 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.009056, allocations: 313.3 kB / 392.5 MB, free: 4.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.009082, allocations: 33.38 kB / 392.6 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.793e-05/0.00916, allocations: 52.55 kB / 392.6 MB, free: 4.742 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004837/0.009644, allocations: 491.8 kB / 393.1 MB, free: 4.234 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.009662, allocations: 8.125 kB / 393.1 MB, free: 4.227 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.805e-05/0.00969, allocations: 24.12 kB / 393.1 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.009699, allocations: 12 kB / 393.1 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.01003, allocations: 271.8 kB / 393.4 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.01135, allocations: 1.358 MB / 394.8 MB, free: 2.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.01165, allocations: 214.4 kB / 395 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.01177, allocations: 101.3 kB / 395.1 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.01178, allocations: 8.172 kB / 395.1 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.01181, allocations: 38.8 kB / 395.1 MB, free: 2.129 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.502e-06/0.01181, allocations: 0 / 395.1 MB, free: 2.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009231/0.01273, allocations: 0.6846 MB / 395.8 MB, free: 1.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.01276, allocations: 63.33 kB / 395.9 MB, free: 1.336 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.01298, allocations: 312.5 kB / 396.2 MB, free: 1.023 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.013, allocations: 33.7 kB / 396.2 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.01311, allocations: 268.2 kB / 396.5 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.01316, allocations: 99.12 kB / 396.6 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.779e-05/0.01323, allocations: 69.59 kB / 396.6 MB, free: 0.543 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.29e-05/0.01331, allocations: 346.8 kB / 397 MB, free: 200 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.601e-05/0.01341, allocations: 75.95 kB / 397 MB, free: 124 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.01355, allocations: 171.1 kB / 397.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.0138, allocations: 279.5 kB / 397.5 MB, free: 15.6 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.0138, allocations: 0 / 397.5 MB, free: 15.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004197/0.01422, allocations: 337.9 kB / 397.8 MB, free: 15.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.01423, allocations: 8 kB / 397.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.01424, allocations: 0 / 397.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001302/0.01437, allocations: 24.84 kB / 397.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.01459, allocations: 72.28 kB / 397.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006885/0.01528, allocations: 1.248 MB / 399.2 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.019e-05/0.01537, allocations: 8 kB / 399.2 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.01539, allocations: 16 kB / 399.2 MB, free: 13.78 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (42): * Single equations (assignments): 41 * 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.0001322/0.01552, allocations: 165.7 kB / 399.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.534e-05/0.01555, allocations: 35.92 kB / 399.4 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.036e-05/0.01559, allocations: 43.08 kB / 399.4 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.0156, allocations: 4 kB / 399.4 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.0156, allocations: 3.984 kB / 399.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.01561, allocations: 3.984 kB / 399.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006417/0.01625, allocations: 0.6531 MB / 400.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01625, allocations: 0 / 400.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.0164, allocations: 55.91 kB / 400.2 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.104e-05/0.01645, allocations: 20.84 kB / 400.2 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.01646, allocations: 12.06 kB / 400.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005415/0.017, allocations: 1.244 MB / 401.4 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.017, allocations: 4.031 kB / 401.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004003/0.0174, allocations: 457 kB / 401.9 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.979e-05/0.01747, allocations: 51.78 kB / 401.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.01749, allocations: 8.156 kB / 401.9 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.316e-05/0.01759, allocations: 12 kB / 401.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.01763, allocations: 19.95 kB / 402 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.01764, allocations: 12 kB / 402 MB, free: 10.8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001467/0.01779, allocations: 215.1 kB / 402.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01779, allocations: 0 / 402.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002474/0.01804, allocations: 88 kB / 402.3 MB, free: 10.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.inertiaRotor.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 (27): * Single equations (assignments): 26 * 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.333e-05/0.01813, allocations: 111.1 kB / 402.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003754/0.0185, allocations: 322.4 kB / 402.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.01851, allocations: 3.938 kB / 402.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.01866, allocations: 218.6 kB / 402.9 MB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.01897, allocations: 76.8 kB / 403 MB, free: 9.762 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.02007, allocations: 0.9247 MB / 403.9 MB, free: 8.793 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.02021, allocations: 219.5 kB / 404.1 MB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.787e-05/0.02026, allocations: 28.5 kB / 404.2 MB, free: 8.52 MB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.02026, allocations: 0 / 404.2 MB, free: 8.52 MB / 330.7 MB Notification: Performance of Templates: time 0.00601/0.02627, allocations: 6.734 MB / 410.9 MB, free: 1.797 MB / 330.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 > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.881907643284649]