Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.0009751/0.0009751, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006207/0.006208, allocations: 169 kB / 16.26 MB, free: 6.652 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.487/1.487, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.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.0006483/0.0006484, allocations: 8 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2606, allocations: 47.58 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01716/0.2778, allocations: 14.71 MB / 341.7 MB, free: 4.602 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.2889, allocations: 5.09 MB / 346.8 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003208/0.2922, allocations: 79.62 kB / 346.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003249/0.2954, allocations: 0.9288 MB / 347.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005251/0.3007, allocations: 1.193 MB / 349 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002386/0.3031, allocations: 0.8614 MB / 349.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006315/0.3094, allocations: 4.246 MB / 354.1 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004602/0.3141, allocations: 2.573 MB / 356.7 MB, free: 5.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002566/0.3167, allocations: 1.311 MB / 358 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002453/0.3191, allocations: 1.719 MB / 359.7 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004645/0.3196, allocations: 204 kB / 359.9 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.3208, allocations: 415.7 kB / 360.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007796/0.3216, allocations: 0.8094 MB / 361.2 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002003/0.3236, allocations: 1.778 MB / 362.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006891/0.3305, allocations: 6.065 MB / 369 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.3306, allocations: 0 / 369 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3306, allocations: 0 / 369 MB, free: 9.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001992/0.3308, allocations: 0 / 369 MB, free: 9.18 MB / 302.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.01015/0.3409, allocations: 3.657 MB / 372.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.341, allocations: 19.95 kB / 372.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003236/0.3442, allocations: 0.6289 MB / 373.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004241/0.3485, allocations: 2.161 MB / 375.5 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.3487, allocations: 234.6 kB / 375.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006413/0.3493, allocations: 315.8 kB / 376 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008403/0.3578, allocations: 4.181 MB / 380.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.998e-05/0.3579, allocations: 4 kB / 380.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003013/0.3582, allocations: 131.9 kB / 380.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000137/0.3583, allocations: 146 kB / 380.5 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00659/0.3649, allocations: 3.565 MB / 384 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02157/0.3865, allocations: 13.83 MB / 397.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006205/0.3927, allocations: 5.901 MB / 403.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002258/0.395, allocations: 1.374 MB / 405.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006081/0.4011, allocations: 3.194 MB / 408.3 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.4012, allocations: 47.88 kB / 408.4 MB, free: 408 kB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 3.757e-06/0.4012, allocations: 0 / 408.4 MB, free: 408 kB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01445/0.4157, allocations: 6.676 MB / 415.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.74e-05/0.4158, allocations: 94.42 kB / 415.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003224/0.4191, allocations: 1.938 MB / 417.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.4193, allocations: 49.7 kB / 417.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.4205, allocations: 1.455 MB / 418.6 MB, free: 5.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000543/0.4211, allocations: 485 kB / 419.1 MB, free: 5.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/0.4213, allocations: 145.6 kB / 419.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.4215, allocations: 305.1 kB / 419.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.4227, allocations: 0.7535 MB / 420.3 MB, free: 4.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/0.4243, allocations: 1.302 MB / 421.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002833/0.4272, allocations: 2.142 MB / 423.7 MB, free: 324 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.4272, allocations: 4 kB / 423.7 MB, free: 320 kB / 350.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004784/0.432, allocations: 2.765 MB / 426.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004526/0.4325, allocations: 0.5753 MB / 427 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/0.4325, allocations: 16 kB / 427.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.4337, allocations: 0.5224 MB / 427.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/0.4351, allocations: 371.4 kB / 427.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00784/0.443, allocations: 7.275 MB / 435.2 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/0.4448, allocations: 96.02 kB / 435.3 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/0.445, allocations: 72 kB / 435.4 MB, free: 3.934 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.445, allocations: 4 kB / 435.4 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004152/0.4492, allocations: 2.535 MB / 437.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/0.4492, allocations: 16 kB / 437.9 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.4504, allocations: 0.5191 MB / 438.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.4517, allocations: 363.4 kB / 438.8 MB, free: 472 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007532/0.4592, allocations: 7.287 MB / 446.1 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.4611, allocations: 83.94 kB / 446.2 MB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.4613, allocations: 79.94 kB / 446.3 MB, free: 8.613 MB / 382.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.002124/0.4634, allocations: 1.07 MB / 447.3 MB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005369/0.4639, allocations: 209.6 kB / 447.5 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004281/0.4682, allocations: 2.501 MB / 450 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.4683, allocations: 16 kB / 450 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.4683, allocations: 4 kB / 450.1 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.4683, allocations: 3.984 kB / 450.1 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2421/0.7104, allocations: 5.325 MB / 455.4 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.7105, allocations: 2.219 kB / 455.4 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.7115, allocations: 183.8 kB / 455.6 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001891/0.7134, allocations: 0.6564 MB / 456.2 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.7136, allocations: 33.23 kB / 456.3 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.7244, allocations: 11.31 MB / 467.6 MB, free: 99.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-06/0.7245, allocations: 7.875 kB / 467.6 MB, free: 99.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00511/0.7296, allocations: 3.634 MB / 471.2 MB, free: 98.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.7307, allocations: 466.2 kB / 471.7 MB, free: 98.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.731, allocations: 31.47 kB / 471.7 MB, free: 98.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009048/0.7319, allocations: 87.12 kB / 471.8 MB, free: 98.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/0.7322, allocations: 109.9 kB / 471.9 MB, free: 98.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.039e-05/0.7323, allocations: 48.22 kB / 471.9 MB, free: 98.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001832/0.7341, allocations: 1.321 MB / 473.3 MB, free: 97.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7342, allocations: 3.875 kB / 473.3 MB, free: 97.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003055/0.7372, allocations: 1.054 MB / 474.3 MB, free: 97.4 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.0003327/0.7376, allocations: 174.6 kB / 474.5 MB, free: 97.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005066/0.7426, allocations: 4.218 MB / 478.7 MB, free: 95.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.7427, allocations: 0 / 478.7 MB, free: 95.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.7447, allocations: 1.796 MB / 480.5 MB, free: 93.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003188/0.7479, allocations: 0.5999 MB / 481.1 MB, free: 93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008768/0.7567, allocations: 7.398 MB / 488.5 MB, free: 85.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001628/0.7583, allocations: 2.317 MB / 490.8 MB, free: 83.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001788/0.7601, allocations: 0.5295 MB / 491.3 MB, free: 82.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003099/0.7605, allocations: 135.4 kB / 491.5 MB, free: 82.62 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.7605, allocations: 0 / 491.5 MB, free: 82.62 MB / 382.1 MB Notification: Performance of Templates: time 0.0548/0.8153, allocations: 38.01 MB / 0.5171 GB, free: 44.56 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)