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.001878/0.001878, allocations: 109.5 kB / 18.95 MB, free: 1.184 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.0019/0.0019, allocations: 215.2 kB / 22.25 MB, free: 3.586 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.728/1.728, allocations: 230.6 MB / 256 MB, free: 9.629 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.01064/0.01064, allocations: 1.603 MB / 314 MB, free: 376 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.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: 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.003672/0.003672, allocations: 69.62 kB / 437.1 MB, free: 46.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1092, allocations: 53.77 MB / 490.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.01081/0.1201, allocations: 3.749 MB / 494.6 MB, free: 6.273 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004366/0.1244, allocations: 1.269 MB / 495.9 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005208/0.1249, allocations: 15.94 kB / 495.9 MB, free: 4.98 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.1262, allocations: 190.6 kB / 496.1 MB, free: 4.793 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008891/0.1271, allocations: 194.5 kB / 496.3 MB, free: 4.602 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004533/0.1275, allocations: 111.9 kB / 496.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001365/0.1289, allocations: 0.5989 MB / 497 MB, free: 3.891 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005352/0.1294, allocations: 167.9 kB / 497.2 MB, free: 3.723 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006684/0.1301, allocations: 243.1 kB / 497.4 MB, free: 3.484 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007042/0.1308, allocations: 210.9 kB / 497.6 MB, free: 3.277 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.1309, allocations: 52 kB / 497.7 MB, free: 3.227 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.1312, allocations: 71.98 kB / 497.7 MB, free: 3.156 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.1314, allocations: 119.5 kB / 497.8 MB, free: 3.039 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004883/0.1319, allocations: 230.9 kB / 498.1 MB, free: 2.812 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.1333, allocations: 0.6225 MB / 498.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1333, allocations: 0 / 498.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1333, allocations: 0 / 498.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.1334, allocations: 0 / 498.7 MB, free: 2.188 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002328/0.1357, allocations: 0.7386 MB / 499.4 MB, free: 1.418 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.1357, allocations: 12.03 kB / 499.4 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000452/0.1362, allocations: 68.59 kB / 499.5 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.1372, allocations: 318.1 kB / 499.8 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/0.1373, allocations: 33.38 kB / 499.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002235/0.1375, allocations: 52.52 kB / 499.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.139, allocations: 495.4 kB / 0.4887 GB, free: 412 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.139, allocations: 0 / 0.4887 GB, free: 412 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.1391, allocations: 20 kB / 0.4887 GB, free: 392 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.884e-05/0.1391, allocations: 12 kB / 0.4887 GB, free: 380 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.1401, allocations: 275.8 kB / 0.489 GB, free: 104 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004319/0.1444, allocations: 1.369 MB / 0.4903 GB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000819/0.1453, allocations: 208.9 kB / 0.4905 GB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003518/0.1456, allocations: 105.2 kB / 0.4906 GB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.1456, allocations: 240 / 0.4906 GB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.1457, allocations: 34.8 kB / 0.4906 GB, free: 14.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.424e-06/0.1457, allocations: 0 / 0.4906 GB, free: 14.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.002702/0.1484, allocations: 0.6871 MB / 0.4913 GB, free: 13.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.1485, allocations: 55.41 kB / 0.4914 GB, free: 13.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000699/0.1492, allocations: 312.5 kB / 0.4917 GB, free: 13.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.939e-05/0.1492, allocations: 33.7 kB / 0.4917 GB, free: 13.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003517/0.1496, allocations: 268.3 kB / 0.4919 GB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.1497, allocations: 107.1 kB / 0.492 GB, free: 12.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.1499, allocations: 65.66 kB / 0.4921 GB, free: 12.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002995/0.1502, allocations: 346.7 kB / 0.4924 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.1505, allocations: 75.97 kB / 0.4925 GB, free: 12.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004543/0.151, allocations: 179 kB / 0.4927 GB, free: 12.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008032/0.1518, allocations: 271.5 kB / 0.4929 GB, free: 11.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1518, allocations: 0 / 0.4929 GB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001125/0.1529, allocations: 334 kB / 0.4933 GB, free: 11.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.1529, allocations: 8 kB / 0.4933 GB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.153, allocations: 7.984 kB / 0.4933 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002289/0.1532, allocations: 20.86 kB / 0.4933 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005511/0.1537, allocations: 75.84 kB / 0.4934 GB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/0.1558, allocations: 1.257 MB / 0.4946 GB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.1561, allocations: 12.03 kB / 0.4946 GB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/0.1561, allocations: 12 kB / 0.4946 GB, free: 9.949 MB / 362.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.0003845/0.1565, allocations: 169.8 kB / 0.4948 GB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.1566, allocations: 39.7 kB / 0.4948 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001452/0.1568, allocations: 35.14 kB / 0.4948 GB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1568, allocations: 4.156 kB / 0.4948 GB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.1568, allocations: 4 kB / 0.4949 GB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.1568, allocations: 3.938 kB / 0.4949 GB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.1589, allocations: 0.6492 MB / 0.4955 GB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.1589, allocations: 4 kB / 0.4955 GB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005855/0.1595, allocations: 51.91 kB / 0.4955 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001428/0.1597, allocations: 24.8 kB / 0.4956 GB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.1597, allocations: 8 kB / 0.4956 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.1615, allocations: 1.248 MB / 0.4968 GB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1615, allocations: 0 / 0.4968 GB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008608/0.1624, allocations: 463.3 kB / 0.4972 GB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.1625, allocations: 43.84 kB / 0.4973 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.1626, allocations: 8 kB / 0.4973 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.1628, allocations: 20.14 kB / 0.4973 GB, free: 7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.1629, allocations: 15.97 kB / 0.4973 GB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.1629, allocations: 8 kB / 0.4973 GB, free: 6.977 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002921/0.1632, allocations: 223.1 kB / 0.4975 GB, free: 6.758 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1632, allocations: 0 / 0.4975 GB, free: 6.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004706/0.1636, allocations: 88 kB / 0.4976 GB, free: 6.672 MB / 362.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 0.0004286/0.1641, allocations: 109 kB / 0.4977 GB, free: 6.559 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007628/0.1648, allocations: 322.8 kB / 0.498 GB, free: 6.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1648, allocations: 0 / 0.498 GB, free: 6.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003315/0.1652, allocations: 210.5 kB / 0.4982 GB, free: 6.012 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/0.1657, allocations: 69.36 kB / 0.4983 GB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.1679, allocations: 1.055 MB / 0.4993 GB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.1682, allocations: 211.5 kB / 0.4995 GB, free: 4.617 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000168/0.1684, allocations: 42.94 kB / 0.4996 GB, free: 4.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.197e-05/0.1684, allocations: 27.38 kB / 0.4996 GB, free: 4.543 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.1684, allocations: 0 / 0.4996 GB, free: 4.543 MB / 362.7 MB Notification: Performance of Templates: time 0.01081/0.1793, allocations: 4.12 MB / 0.5036 GB, free: 0.4961 MB / 362.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: 5.419723434839398]