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.001071/0.001071, allocations: 104.3 kB / 19.71 MB, free: 436 kB / 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.001234/0.001234, allocations: 213.1 kB / 23 MB, free: 2.973 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.038/1.038, allocations: 230.6 MB / 256.8 MB, free: 9.59 MB / 202.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.005376/0.005376, allocations: 1.606 MB / 314.8 MB, free: 452 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.001515/0.001515, allocations: 74.62 kB / 437.1 MB, free: 46.46 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09239, allocations: 53.76 MB / 490.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.005163/0.09755, allocations: 5.114 MB / 496 MB, free: 5.676 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.1, allocations: 1.834 MB / 497.8 MB, free: 3.836 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003803/0.1004, allocations: 43.69 kB / 497.9 MB, free: 3.793 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007193/0.1011, allocations: 361.5 kB / 498.2 MB, free: 3.438 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007182/0.1019, allocations: 453.4 kB / 498.6 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.1021, allocations: 199.7 kB / 498.8 MB, free: 2.797 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.1033, allocations: 1.789 MB / 0.4889 GB, free: 1 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007613/0.1041, allocations: 0.8248 MB / 0.4897 GB, free: 136 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000677/0.1047, allocations: 0.8372 MB / 0.4905 GB, free: 15.29 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009059/0.1056, allocations: 0.9768 MB / 0.4915 GB, free: 14.31 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001994/0.1058, allocations: 212 kB / 0.4917 GB, free: 14.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003001/0.1061, allocations: 243.9 kB / 0.4919 GB, free: 13.87 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003298/0.1065, allocations: 0.5571 MB / 0.4925 GB, free: 13.31 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005396/0.107, allocations: 0.7819 MB / 0.4932 GB, free: 12.52 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.1086, allocations: 2.663 MB / 0.4958 GB, free: 9.852 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1086, allocations: 0 / 0.4958 GB, free: 9.852 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1086, allocations: 0 / 0.4958 GB, free: 9.852 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.1086, allocations: 8 kB / 0.4958 GB, free: 9.844 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.002465/0.1111, allocations: 2.01 MB / 0.4978 GB, free: 7.793 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1112, allocations: 8.031 kB / 0.4978 GB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003399/0.1115, allocations: 203.8 kB / 0.498 GB, free: 7.586 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.1126, allocations: 1.034 MB / 0.499 GB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.894e-05/0.1127, allocations: 111.3 kB / 0.4991 GB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.1129, allocations: 147.9 kB / 0.4992 GB, free: 6.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/0.115, allocations: 2.162 MB / 0.5014 GB, free: 4.027 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.115, allocations: 3.938 kB / 0.5014 GB, free: 4.023 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-05/0.1151, allocations: 64 kB / 0.5014 GB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.037e-05/0.1152, allocations: 62.92 kB / 0.5015 GB, free: 3.898 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001853/0.117, allocations: 1.643 MB / 0.5031 GB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004627/0.1217, allocations: 4.652 MB / 0.5076 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1227, allocations: 1.015 MB / 0.5086 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006141/0.1234, allocations: 0.5654 MB / 0.5092 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.373e-05/0.1234, allocations: 8.656 kB / 0.5092 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.1234, allocations: 43.2 kB / 0.5092 GB, free: 11.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 3.076e-06/0.1234, allocations: 4 kB / 0.5092 GB, free: 11.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.005531/0.129, allocations: 4.283 MB / 0.5134 GB, free: 7.531 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.129, allocations: 60.41 kB / 0.5135 GB, free: 7.457 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006468/0.1296, allocations: 0.7856 MB / 0.5142 GB, free: 6.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.789e-05/0.1297, allocations: 37.7 kB / 0.5143 GB, free: 6.617 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/0.13, allocations: 0.6603 MB / 0.5149 GB, free: 5.949 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1301, allocations: 309.3 kB / 0.5152 GB, free: 5.645 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.1303, allocations: 162.6 kB / 0.5154 GB, free: 5.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1304, allocations: 398.7 kB / 0.5157 GB, free: 5.082 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004844/0.1309, allocations: 481.7 kB / 0.5162 GB, free: 4.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006764/0.1316, allocations: 0.6368 MB / 0.5168 GB, free: 3.922 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.003521/0.1351, allocations: 2.462 MB / 0.5192 GB, free: 1.406 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1351, allocations: 3.938 kB / 0.5192 GB, free: 1.402 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001944/0.137, allocations: 1.76 MB / 0.521 GB, free: 15.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1371, allocations: 11.94 kB / 0.521 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1371, allocations: 4 kB / 0.521 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009997/0.1381, allocations: 0.6099 MB / 0.5216 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/0.1384, allocations: 143.8 kB / 0.5217 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0058/0.1442, allocations: 7.793 MB / 0.5293 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002902/0.1445, allocations: 36.03 kB / 0.5293 GB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.1445, allocations: 32 kB / 0.5294 GB, free: 6.676 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.0005701/0.1451, allocations: 0.5326 MB / 0.5299 GB, free: 6.133 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.341e-05/0.1452, allocations: 103.3 kB / 0.53 GB, free: 6.031 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.147, allocations: 1.676 MB / 0.5316 GB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.147, allocations: 8 kB / 0.5316 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.147, allocations: 4 kB / 0.5316 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.147, allocations: 7.969 kB / 0.5317 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.1504, allocations: 3.062 MB / 0.5346 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1504, allocations: 0 / 0.5346 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.1507, allocations: 119.9 kB / 0.5348 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008975/0.1516, allocations: 0.5527 MB / 0.5353 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.545e-05/0.1516, allocations: 23.98 kB / 0.5353 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004782/0.1564, allocations: 6.964 MB / 0.5421 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1564, allocations: 8 kB / 0.5421 GB, free: 9.211 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.1587, allocations: 2.392 MB / 0.5445 GB, free: 6.773 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/0.1591, allocations: 207.4 kB / 0.5447 GB, free: 6.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.83e-05/0.1592, allocations: 23.98 kB / 0.5447 GB, free: 6.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002834/0.1595, allocations: 47.97 kB / 0.5447 GB, free: 6.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.1596, allocations: 88.38 kB / 0.5448 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.1597, allocations: 20 kB / 0.5448 GB, free: 6.395 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004561/0.1601, allocations: 0.5536 MB / 0.5454 GB, free: 5.848 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1601, allocations: 0 / 0.5454 GB, free: 5.848 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007006/0.1608, allocations: 324 kB / 0.5457 GB, free: 5.531 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.00013/0.161, allocations: 127.1 kB / 0.5458 GB, free: 5.398 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.1628, allocations: 1.725 MB / 0.5475 GB, free: 3.633 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1628, allocations: 0 / 0.5475 GB, free: 3.633 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.1639, allocations: 1.151 MB / 0.5486 GB, free: 2.441 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000713/0.1646, allocations: 274.9 kB / 0.5489 GB, free: 2.172 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1768/0.3414, allocations: 3.217 MB / 0.552 GB, free: 65.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009539/0.3424, allocations: 0.8882 MB / 0.5529 GB, free: 65.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.3427, allocations: 65.55 kB / 0.5529 GB, free: 65.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/0.3427, allocations: 0 / 0.5529 GB, free: 65.84 MB / 410.7 MB Notification: Performance of Templates: time 0.0322/0.3749, allocations: 40.27 MB / 0.5923 GB, free: 38.04 MB / 410.7 MB " [Timeout remaining time 660] 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 > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.607069824822247]