Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 90.08 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 174.6 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004819/0.0004819, allocations: 16 kB / 280.7 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09482, allocations: 47.59 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01512/0.11, allocations: 14.72 MB / 343 MB, free: 4.957 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0129/0.1229, allocations: 5.078 MB / 348.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00584/0.1288, allocations: 83.62 kB / 348.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005328/0.1342, allocations: 0.9327 MB / 349.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008919/0.1431, allocations: 1.185 MB / 350.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.1477, allocations: 0.8557 MB / 351.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01047/0.1582, allocations: 4.262 MB / 355.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006056/0.1643, allocations: 2.573 MB / 358 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003567/0.1679, allocations: 1.311 MB / 359.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004168/0.1721, allocations: 1.719 MB / 361 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007224/0.1729, allocations: 204 kB / 361.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001982/0.1749, allocations: 415.7 kB / 361.6 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001299/0.1762, allocations: 0.8133 MB / 362.5 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003672/0.1799, allocations: 1.766 MB / 364.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.1908, allocations: 6.073 MB / 370.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1909, allocations: 0 / 370.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.978e-06/0.1909, allocations: 0 / 370.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001814/0.1911, allocations: 0 / 370.3 MB, free: 9.535 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01745/0.2086, allocations: 3.653 MB / 374 MB, free: 5.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.085e-05/0.2087, allocations: 8.031 kB / 374 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006737/0.2154, allocations: 0.6328 MB / 374.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00882/0.2243, allocations: 2.173 MB / 376.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005192/0.2249, allocations: 238.6 kB / 377 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001815/0.2267, allocations: 315.8 kB / 377.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1965/0.4232, allocations: 4.17 MB / 381.5 MB, free: 28.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-05/0.4234, allocations: 7.234 kB / 381.5 MB, free: 28.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.4237, allocations: 127 kB / 381.6 MB, free: 28.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002424/0.4239, allocations: 140.8 kB / 381.7 MB, free: 28.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008733/0.4327, allocations: 3.56 MB / 385.3 MB, free: 28.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02193/0.4546, allocations: 13.85 MB / 399.2 MB, free: 22.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004557/0.4592, allocations: 5.902 MB / 405.1 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.461, allocations: 1.365 MB / 406.4 MB, free: 16.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005358/0.4664, allocations: 3.19 MB / 409.6 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.4664, allocations: 50.88 kB / 409.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=138): time 3.176e-06/0.4664, allocations: 0 / 409.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01214/0.4786, allocations: 6.673 MB / 416.3 MB, free: 9.879 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.4787, allocations: 94.41 kB / 416.4 MB, free: 9.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.4812, allocations: 1.938 MB / 418.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.4813, allocations: 53.7 kB / 418.4 MB, free: 7.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006919/0.482, allocations: 1.454 MB / 419.9 MB, free: 6.266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.4823, allocations: 484.3 kB / 420.3 MB, free: 5.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.4825, allocations: 145.6 kB / 420.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.31e-05/0.4825, allocations: 305.1 kB / 420.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009733/0.4835, allocations: 0.7535 MB / 421.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.4847, allocations: 1.301 MB / 422.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/0.4869, allocations: 2.138 MB / 425 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.4869, allocations: 4 kB / 425 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004459/0.4914, allocations: 2.771 MB / 427.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00049/0.4919, allocations: 0.5785 MB / 428.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.4919, allocations: 16 kB / 428.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.4932, allocations: 0.5242 MB / 428.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.4946, allocations: 369.6 kB / 429.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00819/0.5028, allocations: 7.263 MB / 436.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.5046, allocations: 107.9 kB / 436.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.5048, allocations: 72 kB / 436.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.5048, allocations: 4.766 kB / 436.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004094/0.5089, allocations: 2.531 MB / 439.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.913e-05/0.509, allocations: 20 kB / 439.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.5102, allocations: 0.5185 MB / 439.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.5115, allocations: 365.8 kB / 440.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007611/0.5191, allocations: 7.286 MB / 447.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.5208, allocations: 83.94 kB / 447.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.5209, allocations: 70.3 kB / 447.5 MB, free: 9.449 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_n.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 186 * 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,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of prepare postOptimizeDAE: time 0.00211/0.523, allocations: 1.071 MB / 448.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000423/0.5235, allocations: 209.6 kB / 448.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00416/0.5276, allocations: 2.502 MB / 451.3 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.5277, allocations: 19.98 kB / 451.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.5277, allocations: 4 kB / 451.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.5277, allocations: 3.984 kB / 451.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008239/0.5359, allocations: 5.338 MB / 456.7 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.536, allocations: 0 / 456.7 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008059/0.5368, allocations: 178.6 kB / 456.9 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/0.5384, allocations: 0.6555 MB / 457.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-05/0.5385, allocations: 35.98 kB / 457.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0118/0.5503, allocations: 11.33 MB / 468.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.5503, allocations: 7.656 kB / 468.9 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00625/0.5566, allocations: 3.625 MB / 472.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/0.5579, allocations: 462.5 kB / 473 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.5582, allocations: 31.98 kB / 473 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009561/0.5591, allocations: 87.86 kB / 473.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003649/0.5595, allocations: 113.1 kB / 473.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.471e-05/0.5596, allocations: 39.94 kB / 473.2 MB, free: 14.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002378/0.562, allocations: 1.329 MB / 474.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.562, allocations: 3.562 kB / 474.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003931/0.5659, allocations: 1.066 MB / 475.6 MB, free: 12.53 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,inertiaLoad.phi) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.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 (91): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,8,100.0%), (1,1,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004552/0.5664, allocations: 156.2 kB / 475.8 MB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006439/0.5729, allocations: 4.218 MB / 480 MB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/0.5729, allocations: 4 kB / 480 MB, free: 8.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002713/0.5756, allocations: 1.8 MB / 481.8 MB, free: 6.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/0.5793, allocations: 0.6149 MB / 482.4 MB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.5907, allocations: 7.377 MB / 489.8 MB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/0.5929, allocations: 2.313 MB / 492.1 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002003/0.5949, allocations: 0.5334 MB / 492.6 MB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.5952, allocations: 131.4 kB / 492.8 MB, free: 11.29 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5952, allocations: 0 / 492.8 MB, free: 11.29 MB / 398.1 MB Notification: Performance of Templates: time 0.06645/0.6617, allocations: 38.01 MB / 0.5183 GB, free: 5.301 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)