Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 113.2 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 207.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2162, allocations: 50.54 MB / 410 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.01671/0.2329, allocations: 16.26 MB / 426.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009338/0.2423, allocations: 5.443 MB / 431.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/0.2446, allocations: 99.62 kB / 431.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.2476, allocations: 1.142 MB / 432.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003847/0.2515, allocations: 1.336 MB / 434.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002248/0.2537, allocations: 0.9585 MB / 435.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004275/0.258, allocations: 4.053 MB / 439.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003364/0.2614, allocations: 3.202 MB / 442.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.2636, allocations: 1.842 MB / 444.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002446/0.2661, allocations: 2.16 MB / 446.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005422/0.2666, allocations: 500 kB / 446.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001128/0.2677, allocations: 0.7068 MB / 447.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009185/0.2687, allocations: 1.157 MB / 448.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001887/0.2706, allocations: 2.128 MB / 450.9 MB, free: 8.387 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005908/0.2765, allocations: 6.536 MB / 457.5 MB, free: 1.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2765, allocations: 0 / 457.5 MB, free: 1.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.2765, allocations: 0 / 457.5 MB, free: 1.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001008/0.2766, allocations: 0 / 457.5 MB, free: 1.832 MB / 366.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.009322/0.286, allocations: 4.363 MB / 461.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.286, allocations: 8.031 kB / 461.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002869/0.2889, allocations: 0.6367 MB / 462.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003817/0.2927, allocations: 2.36 MB / 464.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.2929, allocations: 234.4 kB / 465.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000457/0.2934, allocations: 311.9 kB / 465.4 MB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006636/0.3, allocations: 4.189 MB / 469.6 MB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.569e-05/0.3001, allocations: 11.84 kB / 469.6 MB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002963/0.3004, allocations: 128 kB / 469.7 MB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001255/0.3005, allocations: 142.1 kB / 469.8 MB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00581/0.3063, allocations: 3.569 MB / 473.4 MB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01809/0.3244, allocations: 13.73 MB / 487.1 MB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005514/0.33, allocations: 6.182 MB / 493.3 MB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/0.332, allocations: 1.366 MB / 494.7 MB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005035/0.337, allocations: 3.317 MB / 498 MB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.3371, allocations: 55.81 kB / 498 MB, free: 7.711 MB / 414.1 MB Notification: Performance of pre-optimization done (n=136): time 3.407e-06/0.3371, allocations: 0 / 498 MB, free: 7.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.01203/0.3491, allocations: 6.531 MB / 0.4928 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.3492, allocations: 90.42 kB / 0.4928 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002447/0.3517, allocations: 1.946 MB / 0.4947 GB, free: 14.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.642e-05/0.3518, allocations: 49.7 kB / 0.4948 GB, free: 14.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008963/0.3527, allocations: 1.463 MB / 0.4962 GB, free: 13.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003185/0.353, allocations: 481.1 kB / 0.4967 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004604/0.3534, allocations: 323.2 kB / 0.497 GB, free: 12.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.227e-05/0.3535, allocations: 309.1 kB / 0.4973 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.3547, allocations: 0.7504 MB / 0.498 GB, free: 11.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.3561, allocations: 1.29 MB / 0.4993 GB, free: 9.973 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002619/0.3588, allocations: 2.103 MB / 0.5013 GB, free: 7.641 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.3588, allocations: 12 kB / 0.5013 GB, free: 7.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003981/0.3628, allocations: 2.698 MB / 0.504 GB, free: 4.891 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3628, allocations: 12 kB / 0.504 GB, free: 4.879 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.3628, allocations: 16 kB / 0.504 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.3639, allocations: 0.4992 MB / 0.5045 GB, free: 4.352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.3653, allocations: 367.4 kB / 0.5048 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007197/0.3725, allocations: 7.694 MB / 0.5123 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.3738, allocations: 99.77 kB / 0.5124 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.3739, allocations: 76 kB / 0.5125 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002418/0.3763, allocations: 1.616 MB / 0.5141 GB, free: 10.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001436/0.3778, allocations: 1.279 MB / 0.5153 GB, free: 8.574 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002587/0.3804, allocations: 2.087 MB / 0.5174 GB, free: 6.254 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.418e-06/0.3804, allocations: 4 kB / 0.5174 GB, free: 6.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=223) (initialization_lambda0): time 0.004019/0.3844, allocations: 2.67 MB / 0.52 GB, free: 3.539 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3845, allocations: 12 kB / 0.52 GB, free: 3.527 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.3845, allocations: 20.39 kB / 0.52 GB, free: 3.508 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.3855, allocations: 0.5109 MB / 0.5205 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.3868, allocations: 367.4 kB / 0.5209 GB, free: 2.625 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007596/0.3944, allocations: 7.7 MB / 0.5284 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.3957, allocations: 87.94 kB / 0.5285 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.3958, allocations: 72 kB / 0.5285 GB, free: 10.36 MB / 462.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 (191): * Single equations (assignments): 187 * 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,5,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.0003613/0.3962, allocations: 314.7 kB / 0.5288 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003593/0.3966, allocations: 205.5 kB / 0.529 GB, free: 9.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004012/0.4006, allocations: 2.442 MB / 0.5314 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.4006, allocations: 3.984 kB / 0.5314 GB, free: 7.328 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4006, allocations: 3.984 kB / 0.5314 GB, free: 7.324 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000791/0.4014, allocations: 462.3 kB / 0.5319 GB, free: 6.852 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000322/0.4017, allocations: 28 kB / 0.5319 GB, free: 6.824 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009513/0.4027, allocations: 71.92 kB / 0.532 GB, free: 6.754 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.4029, allocations: 105.1 kB / 0.5321 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004843/0.4078, allocations: 2.394 MB / 0.5344 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003724/0.4115, allocations: 2.731 MB / 0.5371 GB, free: 1.484 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001054/0.4126, allocations: 0.7675 MB / 0.5378 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.1779/0.5905, allocations: 1.331 MB / 0.5391 GB, free: 122.8 MB / 462.1 MB Notification: Performance of Backend: time 6.22e-07/0.5905, allocations: 0 / 0.5391 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00699/0.5975, allocations: 3.704 MB / 0.5427 GB, free: 121.6 MB / 462.1 MB Notification: Performance of SimCode: time 0.009305/0.6068, allocations: 6.458 MB / 0.549 GB, free: 118.5 MB / 462.1 MB Notification: Performance of Templates: time 0.05767/0.6645, allocations: 47.15 MB / 0.5951 GB, free: 77.54 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1)