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.0008284/0.0008284, allocations: 80.88 kB / 20.8 MB, free: 3.66 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.0009768/0.0009768, allocations: 165 kB / 24.22 MB, free: 244 kB / 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.005/1.005, allocations: 177.1 MB / 204.7 MB, free: 5.457 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.004989/0.004989, allocations: 1.198 MB / 262.4 MB, free: 11.73 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.793e-06/1.793e-06, allocations: 0 / 279.3 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.721e-05/2.9e-05, allocations: 6.25 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.004756/0.004785, allocations: 4.075 MB / 283.4 MB, free: 6.656 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.006424, allocations: 1.386 MB / 284.8 MB, free: 5.262 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001961/0.00662, allocations: 15.88 kB / 284.8 MB, free: 5.246 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005166/0.007137, allocations: 210.4 kB / 285 MB, free: 5.039 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002223/0.007359, allocations: 202.4 kB / 285.2 MB, free: 4.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001385/0.007498, allocations: 107.9 kB / 285.3 MB, free: 4.734 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.007933, allocations: 0.6296 MB / 285.9 MB, free: 4.102 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002408/0.008174, allocations: 162 kB / 286.1 MB, free: 3.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003561/0.00853, allocations: 367.1 kB / 286.5 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.008749, allocations: 183.4 kB / 286.6 MB, free: 3.402 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.322e-05/0.008802, allocations: 56 kB / 286.7 MB, free: 3.348 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.008931, allocations: 79.91 kB / 286.8 MB, free: 3.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.176e-05/0.008992, allocations: 119.5 kB / 286.9 MB, free: 3.152 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.009123, allocations: 187.5 kB / 287.1 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004988/0.009622, allocations: 414.5 kB / 287.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.009625, allocations: 0 / 287.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.009627, allocations: 0 / 287.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.009632, allocations: 0 / 287.5 MB, free: 2.562 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.0007038/0.01034, allocations: 0.7021 MB / 288.2 MB, free: 1.836 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.01037, allocations: 12.03 kB / 288.2 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.01054, allocations: 84.86 kB / 288.3 MB, free: 1.742 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.01082, allocations: 252.4 kB / 288.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.01085, allocations: 37.38 kB / 288.6 MB, free: 1.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.631e-05/0.01094, allocations: 52.5 kB / 288.6 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.01127, allocations: 392.4 kB / 289 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.01129, allocations: 192 / 289 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.01131, allocations: 24.06 kB / 289 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.01132, allocations: 15.98 kB / 289 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.01146, allocations: 122.9 kB / 289.1 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1752/0.1866, allocations: 1.162 MB / 290.3 MB, free: 24.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.1869, allocations: 143 kB / 290.5 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.393e-05/0.187, allocations: 44.8 kB / 290.5 MB, free: 24.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.187, allocations: 6.219 kB / 290.5 MB, free: 24.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.187, allocations: 39.75 kB / 290.5 MB, free: 24.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.322e-06/0.187, allocations: 0 / 290.5 MB, free: 24.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0003598/0.1874, allocations: 180.6 kB / 290.7 MB, free: 24.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.19e-05/0.1874, allocations: 55.88 kB / 290.8 MB, free: 24.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.1876, allocations: 274 kB / 291 MB, free: 23.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.1876, allocations: 30.23 kB / 291.1 MB, free: 23.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1877, allocations: 244.6 kB / 291.3 MB, free: 23.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.188e-05/0.1878, allocations: 99.47 kB / 291.4 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.132e-05/0.1878, allocations: 60.86 kB / 291.5 MB, free: 23.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.207e-05/0.1879, allocations: 345.7 kB / 291.8 MB, free: 23.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.26e-05/0.188, allocations: 33.95 kB / 291.8 MB, free: 23.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.519e-05/0.188, allocations: 123.8 kB / 292 MB, free: 23.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.1882, allocations: 196.1 kB / 292.1 MB, free: 23.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1882, allocations: 2.156 kB / 292.1 MB, free: 23.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002588/0.1885, allocations: 212.1 kB / 292.4 MB, free: 23.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1885, allocations: 6.797 kB / 292.4 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1885, allocations: 6.812 kB / 292.4 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001011/0.1886, allocations: 19.8 kB / 292.4 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.1888, allocations: 83.5 kB / 292.5 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004368/0.1892, allocations: 1.172 MB / 293.6 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.1894, allocations: 28.8 kB / 293.7 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.1894, allocations: 14.5 kB / 293.7 MB, free: 21.97 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.0001078/0.1895, allocations: 136.9 kB / 293.8 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.895e-05/0.1895, allocations: 24.08 kB / 293.8 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.379e-05/0.1896, allocations: 38.39 kB / 293.9 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.1896, allocations: 6.859 kB / 293.9 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1896, allocations: 2.984 kB / 293.9 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1896, allocations: 1.953 kB / 293.9 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004619/0.1901, allocations: 410.2 kB / 294.3 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1901, allocations: 5.031 kB / 294.3 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.1902, allocations: 59.25 kB / 294.4 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.766e-05/0.1903, allocations: 22.88 kB / 294.4 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.1903, allocations: 7.188 kB / 294.4 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003392/0.1906, allocations: 1.161 MB / 295.5 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1906, allocations: 0 / 295.5 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.1909, allocations: 293.5 kB / 295.8 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.277e-05/0.1909, allocations: 30.22 kB / 295.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.1909, allocations: 6.062 kB / 295.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.849e-05/0.191, allocations: 9.172 kB / 295.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.1911, allocations: 25.02 kB / 295.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.1911, allocations: 9.781 kB / 295.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001097/0.1912, allocations: 107 kB / 296 MB, free: 20.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1912, allocations: 0 / 296 MB, free: 20.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.1915, allocations: 119.6 kB / 296.1 MB, free: 20.32 MB / 266.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 8.268e-05/0.1916, allocations: 81.84 kB / 296.2 MB, free: 20.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002955/0.1919, allocations: 243.2 kB / 296.4 MB, free: 20.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.1919, allocations: 6.094 kB / 296.5 MB, free: 20.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.192, allocations: 184.8 kB / 296.6 MB, free: 20.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.1923, allocations: 59.55 kB / 296.7 MB, free: 20.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.1936, allocations: 0.8428 MB / 297.5 MB, free: 19.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.567e-05/0.1937, allocations: 108.9 kB / 297.6 MB, free: 19.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.1939, allocations: 32.48 kB / 297.7 MB, free: 19.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.194, allocations: 113.9 kB / 297.8 MB, free: 19.45 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.194, allocations: 1.125 kB / 297.8 MB, free: 19.45 MB / 266.7 MB Notification: Performance of Templates: time 0.00831/0.2023, allocations: 3.864 MB / 301.6 MB, free: 19.06 MB / 266.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.8400272177532315]