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.001104/0.001104, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001212/0.001212, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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.8831/0.8831, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.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.007706/0.007706, allocations: 1.202 MB / 261.5 MB, free: 11.77 MB / 250.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: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 3.938 kB / 278.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.187e-05/2.346e-05, allocations: 2.312 kB / 278.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBrakingRectifier): time 0.007612/0.007635, allocations: 6.352 MB / 284.7 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004772/0.01241, allocations: 2.176 MB / 286.9 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009275/0.01333, allocations: 43.69 kB / 286.9 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.01457, allocations: 393.1 kB / 287.3 MB, free: 1.898 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001428/0.016, allocations: 0.5432 MB / 287.8 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004426/0.01644, allocations: 251.6 kB / 288.1 MB, free: 1.105 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1215/0.138, allocations: 2.057 MB / 290.1 MB, free: 19.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.139, allocations: 0.7816 MB / 290.9 MB, free: 19.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.1409, allocations: 1.362 MB / 292.3 MB, free: 19.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001376/0.1423, allocations: 0.9398 MB / 293.2 MB, free: 19.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006482/0.143, allocations: 224 kB / 293.4 MB, free: 19.56 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006025/0.1436, allocations: 241.8 kB / 293.7 MB, free: 19.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003983/0.144, allocations: 0.5892 MB / 294.3 MB, free: 19.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007881/0.1448, allocations: 0.6861 MB / 294.9 MB, free: 19.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001526/0.1463, allocations: 1.631 MB / 296.6 MB, free: 18.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1463, allocations: 0.6875 kB / 296.6 MB, free: 18.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1463, allocations: 0 / 296.6 MB, free: 18.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.941e-05/0.1463, allocations: 1.344 kB / 296.6 MB, free: 18.69 MB / 266.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.002539/0.1489, allocations: 1.931 MB / 298.5 MB, free: 17.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.1489, allocations: 9.531 kB / 298.5 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004357/0.1493, allocations: 251.5 kB / 298.8 MB, free: 17.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008779/0.1502, allocations: 0.7187 MB / 299.5 MB, free: 17.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.985e-05/0.1503, allocations: 105.7 kB / 299.6 MB, free: 17.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.1504, allocations: 144.7 kB / 299.7 MB, free: 17.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.1516, allocations: 1.201 MB / 300.9 MB, free: 16.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.1516, allocations: 9.75 kB / 300.9 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-05/0.1517, allocations: 61.16 kB / 301 MB, free: 16.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.303e-05/0.1518, allocations: 70.83 kB / 301.1 MB, free: 16.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006788/0.1524, allocations: 401.9 kB / 301.5 MB, free: 16.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/0.156, allocations: 3.727 MB / 305.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000603/0.1566, allocations: 0.6504 MB / 305.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005426/0.1571, allocations: 0.5042 MB / 306.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.896e-05/0.1572, allocations: 20.92 kB / 306.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.1572, allocations: 46.94 kB / 306.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=99): time 2.084e-06/0.1572, allocations: 0 / 306.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=99): time 0.002932/0.1601, allocations: 1.525 MB / 307.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/0.1602, allocations: 64.39 kB / 308 MB, free: 12.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.1605, allocations: 0.603 MB / 308.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.1606, allocations: 45.7 kB / 308.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.1607, allocations: 0.53 MB / 309.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.1608, allocations: 346.6 kB / 309.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.1609, allocations: 162.4 kB / 309.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.301e-05/0.161, allocations: 344.5 kB / 310 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.1611, allocations: 120.8 kB / 310.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.1613, allocations: 245.2 kB / 310.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.1617, allocations: 459.5 kB / 310.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1617, allocations: 0 / 310.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.0007254/0.1624, allocations: 0.6639 MB / 311.5 MB, free: 9.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1624, allocations: 7.938 kB / 311.5 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1624, allocations: 8.344 kB / 311.5 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.1631, allocations: 310.8 kB / 311.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.1634, allocations: 149.3 kB / 311.9 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002688/0.166, allocations: 5.128 MB / 317.1 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.1663, allocations: 67.47 kB / 317.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.1664, allocations: 24 kB / 317.2 MB, free: 3.797 MB / 266.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: 8 (integrator.local_reset,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 78 * 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 {(1,2,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.0002565/0.1666, allocations: 186.2 kB / 317.3 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.1667, allocations: 99.84 kB / 317.4 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007672/0.1675, allocations: 0.717 MB / 318.2 MB, free: 2.797 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1675, allocations: 12 kB / 318.2 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.1675, allocations: 3.984 kB / 318.2 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1675, allocations: 7.297 kB / 318.2 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.1692, allocations: 1.546 MB / 319.7 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1692, allocations: 0 / 319.7 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.1695, allocations: 122.5 kB / 319.8 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005489/0.17, allocations: 336.8 kB / 320.2 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.1701, allocations: 19.98 kB / 320.2 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003547/0.1736, allocations: 5.068 MB / 325.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1736, allocations: 0 / 325.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1746, allocations: 0.9024 MB / 326.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/0.1749, allocations: 155.1 kB / 326.3 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.964e-05/0.175, allocations: 27.92 kB / 326.3 MB, free: 10.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.1752, allocations: 31.98 kB / 326.4 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.1753, allocations: 88.41 kB / 326.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.331e-05/0.1754, allocations: 15.98 kB / 326.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002331/0.1756, allocations: 310.8 kB / 326.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1756, allocations: 0 / 326.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008119/0.1764, allocations: 470.9 kB / 327.2 MB, free: 9.656 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.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 (64): * Single equations (assignments): 60 * 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 {(1,2,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.000147/0.1766, allocations: 115.4 kB / 327.4 MB, free: 9.539 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.1779, allocations: 1.028 MB / 328.4 MB, free: 8.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/0.1779, allocations: 16 kB / 328.4 MB, free: 8.484 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006992/0.1786, allocations: 0.8287 MB / 329.2 MB, free: 7.645 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007075/0.1793, allocations: 322.3 kB / 329.5 MB, free: 7.344 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003398/0.1827, allocations: 2.779 MB / 332.3 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.183, allocations: 365.5 kB / 332.7 MB, free: 4.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002677/0.1832, allocations: 112.9 kB / 332.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004638/0.1837, allocations: 313.1 kB / 333.1 MB, free: 3.762 MB / 282.7 MB Notification: Performance of SimCode: time 6.62e-07/0.1837, allocations: 0 / 333.1 MB, free: 3.762 MB / 282.7 MB Notification: Performance of Templates: time 0.03439/0.2181, allocations: 24.02 MB / 357.1 MB, free: 12.17 MB / 314.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBrakingRectifier.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.512443353887647]