Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.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.002311/0.002311, 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.005628/0.005628, 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.763/1.763, 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.0105/0.0105, allocations: 1.603 MB / 314 MB, free: 368 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.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") [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.003751/0.003751, allocations: 70.8 kB / 437.1 MB, free: 46.09 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09619/0.09994, allocations: 53.77 MB / 490.9 MB, free: 10.03 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.008077/0.108, allocations: 5.116 MB / 496 MB, free: 4.883 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003996/0.112, allocations: 1.83 MB / 497.8 MB, free: 3.047 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005848/0.1126, allocations: 43.69 kB / 497.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.1136, allocations: 357.5 kB / 498.2 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.1148, allocations: 449.4 kB / 498.7 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.1153, allocations: 203.7 kB / 498.9 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002261/0.1175, allocations: 1.793 MB / 0.4889 GB, free: 216 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.1189, allocations: 0.8287 MB / 0.4897 GB, free: 15.34 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.1201, allocations: 0.8295 MB / 0.4905 GB, free: 14.51 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.1219, allocations: 0.9806 MB / 0.4915 GB, free: 13.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003531/0.1222, allocations: 212 kB / 0.4917 GB, free: 13.32 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004989/0.1227, allocations: 236 kB / 0.4919 GB, free: 13.09 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006269/0.1233, allocations: 0.5571 MB / 0.4925 GB, free: 12.53 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009934/0.1243, allocations: 0.7819 MB / 0.4932 GB, free: 11.74 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003163/0.1275, allocations: 2.674 MB / 0.4958 GB, free: 9.059 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1275, allocations: 0 / 0.4958 GB, free: 9.059 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1275, allocations: 0 / 0.4958 GB, free: 9.059 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.822e-05/0.1275, allocations: 0 / 0.4958 GB, free: 9.059 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.004013/0.1315, allocations: 2.01 MB / 0.4978 GB, free: 7.008 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.1316, allocations: 8.031 kB / 0.4978 GB, free: 7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005566/0.1321, allocations: 207.8 kB / 0.498 GB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.1341, allocations: 1.038 MB / 0.499 GB, free: 5.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.1342, allocations: 107.3 kB / 0.4991 GB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002426/0.1344, allocations: 151.9 kB / 0.4993 GB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003762/0.1382, allocations: 2.158 MB / 0.5014 GB, free: 3.234 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.597e-05/0.1382, allocations: 7.938 kB / 0.5014 GB, free: 3.227 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.1384, allocations: 56 kB / 0.5014 GB, free: 3.172 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.642e-05/0.1384, allocations: 66.92 kB / 0.5015 GB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003054/0.1415, allocations: 1.639 MB / 0.5031 GB, free: 1.461 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009215/0.1507, allocations: 4.648 MB / 0.5076 GB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.1526, allocations: 1.023 MB / 0.5086 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009859/0.1536, allocations: 0.5654 MB / 0.5092 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.169e-05/0.1536, allocations: 16.64 kB / 0.5092 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.847e-05/0.1537, allocations: 39.22 kB / 0.5093 GB, free: 11.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 2.344e-06/0.1537, allocations: 0 / 0.5093 GB, free: 11.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.0101/0.1638, allocations: 4.28 MB / 0.5134 GB, free: 6.738 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.1639, allocations: 60.41 kB / 0.5135 GB, free: 6.664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.1653, allocations: 0.7817 MB / 0.5143 GB, free: 5.871 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.315e-05/0.1654, allocations: 41.7 kB / 0.5143 GB, free: 5.824 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006121/0.166, allocations: 0.6565 MB / 0.5149 GB, free: 5.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.1664, allocations: 309.3 kB / 0.5152 GB, free: 4.855 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/0.1667, allocations: 158.6 kB / 0.5154 GB, free: 4.695 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003138/0.167, allocations: 398.7 kB / 0.5158 GB, free: 4.297 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008778/0.1679, allocations: 497.7 kB / 0.5162 GB, free: 3.812 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009905/0.1689, allocations: 0.6328 MB / 0.5169 GB, free: 3.125 MB / 378.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.006397/0.1753, allocations: 2.454 MB / 0.5192 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.1753, allocations: 7.938 kB / 0.5193 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003662/0.1789, allocations: 1.752 MB / 0.521 GB, free: 14.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.1789, allocations: 15.92 kB / 0.521 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.179, allocations: 4 kB / 0.521 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002125/0.1811, allocations: 0.6062 MB / 0.5216 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.1817, allocations: 147.7 kB / 0.5217 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.1928, allocations: 7.793 MB / 0.5293 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007/0.1935, allocations: 40.03 kB / 0.5294 GB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.078e-05/0.1936, allocations: 31.98 kB / 0.5294 GB, free: 5.883 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smpm.inertiaRotor.phi = $START.smpm.inertiaRotor.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (switch.control[3],switch.control[2],switch.control[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,14,76.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001028/0.1946, allocations: 0.5288 MB / 0.5299 GB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.1948, allocations: 99.33 kB / 0.53 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003503/0.1983, allocations: 1.688 MB / 0.5317 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.1983, allocations: 11.98 kB / 0.5317 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1983, allocations: 4 kB / 0.5317 GB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.1983, allocations: 7.984 kB / 0.5317 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006223/0.2046, allocations: 3.046 MB / 0.5347 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.2046, allocations: 0 / 0.5347 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005628/0.2051, allocations: 124 kB / 0.5348 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002046/0.2072, allocations: 0.5488 MB / 0.5353 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-05/0.2073, allocations: 27.98 kB / 0.5353 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009638/0.2169, allocations: 6.964 MB / 0.5421 GB, free: 8.426 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2169, allocations: 0 / 0.5421 GB, free: 8.426 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004492/0.2214, allocations: 2.396 MB / 0.5445 GB, free: 5.984 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005885/0.222, allocations: 207.4 kB / 0.5447 GB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.2221, allocations: 23.98 kB / 0.5447 GB, free: 5.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005596/0.2227, allocations: 52.22 kB / 0.5447 GB, free: 5.707 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.2229, allocations: 80.38 kB / 0.5448 GB, free: 5.629 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-05/0.223, allocations: 32 kB / 0.5449 GB, free: 5.598 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008474/0.2238, allocations: 0.5497 MB / 0.5454 GB, free: 5.055 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2238, allocations: 0 / 0.5454 GB, free: 5.055 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001121/0.2249, allocations: 324 kB / 0.5457 GB, free: 4.738 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.inertiaRotor.phi,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2]) * Number of discrete variables: 3 (switch.control[1],switch.control[2],switch.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,14,76.0%), (2,1,100.0%), (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.0002011/0.2251, allocations: 127.1 kB / 0.5458 GB, free: 4.605 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003445/0.2286, allocations: 1.728 MB / 0.5475 GB, free: 2.836 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.2286, allocations: 4 kB / 0.5475 GB, free: 2.832 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002223/0.2308, allocations: 1.152 MB / 0.5486 GB, free: 1.641 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.2322, allocations: 261.7 kB / 0.5489 GB, free: 1.391 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2227/0.4549, allocations: 3.223 MB / 0.552 GB, free: 64.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.4562, allocations: 0.901 MB / 0.5529 GB, free: 64.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008202/0.4571, allocations: 204.7 kB / 0.5531 GB, free: 64.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.4573, allocations: 67.28 kB / 0.5532 GB, free: 64.22 MB / 410.7 MB Notification: Performance of SimCode: time 9.61e-07/0.4573, allocations: 0 / 0.5532 GB, free: 64.22 MB / 410.7 MB Notification: Performance of Templates: time 0.05263/0.5099, allocations: 20.46 MB / 0.5732 GB, free: 56.23 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.201687851920724]