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.001838/0.001838, allocations: 109.5 kB / 18.95 MB, free: 1.18 MB / 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.001964/0.001964, allocations: 213.6 kB / 22.25 MB, free: 3.59 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.895/1.895, allocations: 230.6 MB / 256 MB, free: 9.594 MB / 202.7 MB " [Timeout remaining time 178] 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.01294/0.01294, allocations: 1.604 MB / 314 MB, free: 360 kB / 234.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: ElectricBraking requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.005092/0.005092, allocations: 73.86 kB / 437.1 MB, free: 46.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.129, allocations: 53.78 MB / 490.9 MB, free: 10.03 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.004779/0.1338, allocations: 2.328 MB / 493.2 MB, free: 7.688 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.1359, allocations: 0.8882 MB / 494.1 MB, free: 6.793 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.136, allocations: 7.938 kB / 494.1 MB, free: 6.785 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004183/0.1364, allocations: 87.41 kB / 494.2 MB, free: 6.699 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002996/0.1367, allocations: 111.2 kB / 494.3 MB, free: 6.59 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.137, allocations: 107.8 kB / 494.4 MB, free: 6.484 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.1374, allocations: 355.4 kB / 494.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1376, allocations: 45.17 kB / 494.8 MB, free: 6.086 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00031/0.1379, allocations: 155.5 kB / 495 MB, free: 5.934 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.1382, allocations: 147.4 kB / 495.1 MB, free: 5.789 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.1382, allocations: 28 kB / 495.1 MB, free: 5.762 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.1384, allocations: 79.97 kB / 495.2 MB, free: 5.684 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.1385, allocations: 71.75 kB / 495.3 MB, free: 5.613 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1387, allocations: 115.4 kB / 495.4 MB, free: 5.5 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000507/0.1392, allocations: 362.6 kB / 495.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1392, allocations: 0 / 495.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1392, allocations: 0 / 495.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.1392, allocations: 0 / 495.7 MB, free: 5.145 MB / 346.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.001094/0.1403, allocations: 0.5284 MB / 496.3 MB, free: 4.586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.1403, allocations: 8.031 kB / 496.3 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.499e-05/0.1404, allocations: 28.73 kB / 496.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.1408, allocations: 218.9 kB / 496.5 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.1408, allocations: 20.75 kB / 496.5 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.853e-05/0.1409, allocations: 20.38 kB / 496.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005671/0.1414, allocations: 274.8 kB / 496.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.1415, allocations: 11.95 kB / 496.8 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/0.1415, allocations: 12 kB / 496.9 MB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.1415, allocations: 4 kB / 496.9 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.142, allocations: 216.9 kB / 497.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.1438, allocations: 0.8855 MB / 498 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.1442, allocations: 162.7 kB / 498.1 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.1444, allocations: 92.81 kB / 498.2 MB, free: 2.547 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.224e-05/0.1445, allocations: 4 kB / 498.2 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/0.1445, allocations: 38.5 kB / 498.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.172e-06/0.1445, allocations: 0 / 498.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.00179/0.1463, allocations: 493.4 kB / 498.7 MB, free: 2.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.1463, allocations: 55.41 kB / 498.8 MB, free: 1.941 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.1467, allocations: 239 kB / 499 MB, free: 1.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.949e-05/0.1467, allocations: 29.7 kB / 499 MB, free: 1.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.1468, allocations: 156.4 kB / 499.2 MB, free: 1.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.071e-05/0.1469, allocations: 75.36 kB / 499.3 MB, free: 1.434 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.147, allocations: 57.94 kB / 499.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.1472, allocations: 342.8 kB / 499.7 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.1475, allocations: 96.52 kB / 499.8 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.1477, allocations: 160.7 kB / 499.9 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004042/0.1481, allocations: 207.6 kB / 0.4884 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1482, allocations: 4 kB / 0.4884 GB, free: 0.5117 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001069/0.1492, allocations: 346.1 kB / 0.4887 GB, free: 168 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1492, allocations: 8 kB / 0.4887 GB, free: 160 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1492, allocations: 0 / 0.4887 GB, free: 160 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004865/0.1497, allocations: 180.9 kB / 0.4889 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.1499, allocations: 39.92 kB / 0.4889 GB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008134/0.1507, allocations: 0.6773 MB / 0.4896 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.151, allocations: 51.86 kB / 0.4897 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.151, allocations: 8 kB / 0.4897 GB, free: 15.18 MB / 362.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.0001752/0.1512, allocations: 145.7 kB / 0.4898 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.74e-05/0.1513, allocations: 19.86 kB / 0.4898 GB, free: 15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.861e-05/0.1514, allocations: 37.95 kB / 0.4899 GB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1514, allocations: 0 / 0.4899 GB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.1514, allocations: 0 / 0.4899 GB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1514, allocations: 0 / 0.4899 GB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.1526, allocations: 0.6198 MB / 0.4905 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1526, allocations: 4 kB / 0.4905 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.1528, allocations: 27.98 kB / 0.4905 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003383/0.1531, allocations: 156.8 kB / 0.4906 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.143e-05/0.1532, allocations: 11.92 kB / 0.4907 GB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007429/0.1539, allocations: 0.6538 MB / 0.4913 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1539, allocations: 3.938 kB / 0.4913 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.1549, allocations: 0.4999 MB / 0.4918 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.1551, allocations: 47.8 kB / 0.4918 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/0.1551, allocations: 8 kB / 0.4918 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.1554, allocations: 35.89 kB / 0.4919 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.1555, allocations: 39.92 kB / 0.4919 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.1555, allocations: 7.984 kB / 0.4919 GB, free: 12.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001946/0.1557, allocations: 172.5 kB / 0.4921 GB, free: 12.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1557, allocations: 0 / 0.4921 GB, free: 12.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003578/0.1561, allocations: 67.89 kB / 0.4921 GB, free: 12.54 MB / 362.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.00244/0.1585, allocations: 391.6 kB / 0.4925 GB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006654/0.1592, allocations: 235.6 kB / 0.4927 GB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1592, allocations: 0 / 0.4927 GB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.1595, allocations: 119.9 kB / 0.4929 GB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.1599, allocations: 44.56 kB / 0.4929 GB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/0.1629, allocations: 0.9628 MB / 0.4938 GB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.1631, allocations: 138.1 kB / 0.494 GB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.1632, allocations: 25.94 kB / 0.494 GB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.697e-05/0.1632, allocations: 27.42 kB / 0.494 GB, free: 10.7 MB / 362.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1632, allocations: 0 / 0.494 GB, free: 10.7 MB / 362.7 MB Notification: Performance of Templates: time 0.01062/0.1738, allocations: 4.678 MB / 0.4986 GB, free: 6.066 MB / 362.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: 5.620788426138461]