Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.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.0009961/0.0009961, allocations: 104.3 kB / 19.71 MB, free: 440 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.0009193/0.0009193, allocations: 210.8 kB / 23 MB, free: 2.961 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 0.995/0.995, allocations: 230.6 MB / 256.8 MB, free: 9.586 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.005385/0.005385, allocations: 1.596 MB / 314.8 MB, free: 344 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.SMPMBrakingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier") translateModel(ElectricBraking.Examples.Rotational.SMPMBrakingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier") [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.001348/0.001348, allocations: 70.53 kB / 437.1 MB, free: 46.6 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07701/0.07836, allocations: 53.78 MB / 490.9 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBrakingRectifier): time 0.0054/0.08376, allocations: 5.835 MB / 496.7 MB, free: 4.898 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.0861, allocations: 2.025 MB / 498.7 MB, free: 2.867 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003532/0.08645, allocations: 43.69 kB / 498.8 MB, free: 2.824 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006843/0.08714, allocations: 377.3 kB / 499.2 MB, free: 2.453 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007347/0.08787, allocations: 0.5204 MB / 499.7 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.08813, allocations: 255.6 kB / 499.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.08928, allocations: 1.996 MB / 0.4902 GB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006755/0.08995, allocations: 0.7568 MB / 0.4909 GB, free: 14.86 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008562/0.09081, allocations: 0.8723 MB / 0.4917 GB, free: 13.99 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007785/0.09159, allocations: 1.016 MB / 0.4927 GB, free: 12.97 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.09177, allocations: 228 kB / 0.493 GB, free: 12.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002533/0.09202, allocations: 244 kB / 0.4932 GB, free: 12.51 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003052/0.09232, allocations: 0.5687 MB / 0.4937 GB, free: 11.94 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004639/0.09279, allocations: 0.8092 MB / 0.4945 GB, free: 11.12 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.09434, allocations: 2.807 MB / 0.4973 GB, free: 8.309 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.09434, allocations: 0 / 0.4973 GB, free: 8.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09434, allocations: 0 / 0.4973 GB, free: 8.309 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.09436, allocations: 0 / 0.4973 GB, free: 8.309 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: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.002393/0.09675, allocations: 2.099 MB / 0.4993 GB, free: 6.168 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.09679, allocations: 12.03 kB / 0.4993 GB, free: 6.156 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.09705, allocations: 211.7 kB / 0.4995 GB, free: 5.949 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.09816, allocations: 1.082 MB / 0.5006 GB, free: 4.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.25e-05/0.09822, allocations: 107.1 kB / 0.5007 GB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.09836, allocations: 147.9 kB / 0.5008 GB, free: 4.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.1003, allocations: 2.131 MB / 0.5029 GB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.1003, allocations: 4 kB / 0.5029 GB, free: 2.363 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.95e-05/0.1004, allocations: 56 kB / 0.503 GB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.412e-05/0.1005, allocations: 78.75 kB / 0.503 GB, free: 2.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.1022, allocations: 1.725 MB / 0.5047 GB, free: 0.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0052/0.1074, allocations: 5.432 MB / 0.51 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.1087, allocations: 1.352 MB / 0.5114 GB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.1098, allocations: 0.9757 MB / 0.5123 GB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.1098, allocations: 9 kB / 0.5123 GB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.1098, allocations: 51.5 kB / 0.5124 GB, free: 8.559 MB / 378.7 MB Notification: Performance of pre-optimization done (n=103): time 2.565e-06/0.1098, allocations: 0 / 0.5124 GB, free: 8.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.006649/0.1165, allocations: 5.048 MB / 0.5173 GB, free: 3.465 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.1165, allocations: 64.41 kB / 0.5174 GB, free: 3.391 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007046/0.1172, allocations: 0.8602 MB / 0.5182 GB, free: 2.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.1173, allocations: 45.7 kB / 0.5182 GB, free: 2.469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/0.1176, allocations: 0.6258 MB / 0.5189 GB, free: 1.836 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.1177, allocations: 376.8 kB / 0.5192 GB, free: 1.465 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.1179, allocations: 170.6 kB / 0.5194 GB, free: 1.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003147/0.1182, allocations: 341.9 kB / 0.5197 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005308/0.1188, allocations: 0.5407 MB / 0.5202 GB, free: 420 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.1194, allocations: 0.6689 MB / 0.5209 GB, free: 15.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.1205, allocations: 1.24 MB / 0.5221 GB, free: 14.42 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1205, allocations: 0 / 0.5221 GB, free: 14.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00181/0.1223, allocations: 1.84 MB / 0.5239 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1223, allocations: 8.031 kB / 0.5239 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1223, allocations: 4 kB / 0.5239 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.1233, allocations: 0.6885 MB / 0.5246 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.1237, allocations: 155.8 kB / 0.5247 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005677/0.1293, allocations: 8.071 MB / 0.5326 GB, free: 3.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.1296, allocations: 43.95 kB / 0.5326 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.45e-05/0.1297, allocations: 35.98 kB / 0.5327 GB, free: 3.242 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off,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 (87): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0004929/0.1302, allocations: 0.5326 MB / 0.5332 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.1303, allocations: 111.3 kB / 0.5333 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.1323, allocations: 1.901 MB / 0.5352 GB, free: 0.668 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1323, allocations: 12 kB / 0.5352 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1323, allocations: 7.938 kB / 0.5352 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.1323, allocations: 11.91 kB / 0.5352 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/0.1357, allocations: 3.296 MB / 0.5384 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1357, allocations: 4.062 kB / 0.5384 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003367/0.136, allocations: 143.8 kB / 0.5386 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008703/0.1369, allocations: 0.655 MB / 0.5392 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.1369, allocations: 24 kB / 0.5392 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005454/0.1424, allocations: 7.994 MB / 0.547 GB, free: 4.129 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1424, allocations: 4 kB / 0.547 GB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.1449, allocations: 2.677 MB / 0.5496 GB, free: 1.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.1453, allocations: 243.2 kB / 0.5499 GB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.115e-05/0.1453, allocations: 20 kB / 0.5499 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.1457, allocations: 55.94 kB / 0.5499 GB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.1458, allocations: 92.81 kB / 0.55 GB, free: 1.004 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.1458, allocations: 31.94 kB / 0.5501 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005006/0.1463, allocations: 0.6083 MB / 0.5507 GB, free: 376 kB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1463, allocations: 0 / 0.5507 GB, free: 376 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007236/0.1471, allocations: 376 kB / 0.551 GB, free: 0 / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.inertiaRotor.phi,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2],smpm.clarkeParkConverter.i0) * Number of discrete variables: 7 (switch.control,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,26)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1898/0.3369, allocations: 137.8 kB / 0.5511 GB, free: 65.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002509/0.3394, allocations: 1.914 MB / 0.553 GB, free: 65.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3394, allocations: 0 / 0.553 GB, free: 65.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.3407, allocations: 1.309 MB / 0.5543 GB, free: 65.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.3417, allocations: 321.7 kB / 0.5546 GB, free: 65.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004528/0.3463, allocations: 3.606 MB / 0.5581 GB, free: 63.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.3474, allocations: 0.8835 MB / 0.559 GB, free: 63.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.3476, allocations: 70.72 kB / 0.5591 GB, free: 63.14 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/0.3476, allocations: 0 / 0.5591 GB, free: 63.14 MB / 410.7 MB Notification: Performance of Templates: time 0.02798/0.3756, allocations: 48.96 MB / 0.6069 GB, free: 22.74 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 10.161336639896035]