Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001404/0.001404, allocations: 115.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.001794/0.001794, allocations: 206.7 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.406/1.406, allocations: 227.4 MB / 247.6 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2347, allocations: 50.53 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01219/0.2469, allocations: 11.5 MB / 421.4 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0067/0.2537, allocations: 3.77 MB / 425.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.2551, allocations: 63.75 kB / 425.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.257, allocations: 0.815 MB / 426.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.2594, allocations: 0.9279 MB / 427 MB, free: 468 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.2604, allocations: 499.3 kB / 427.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003194/0.2636, allocations: 3.354 MB / 430.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002717/0.2664, allocations: 2.621 MB / 433.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.2681, allocations: 1.487 MB / 435 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002174/0.2703, allocations: 1.798 MB / 436.8 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000558/0.2709, allocations: 392 kB / 437.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000864/0.2718, allocations: 491.8 kB / 437.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.2728, allocations: 1.087 MB / 438.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001709/0.2745, allocations: 1.758 MB / 440.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004406/0.2789, allocations: 5.133 MB / 445.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.2789, allocations: 0 / 445.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2789, allocations: 0 / 445.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.015e-05/0.279, allocations: 0 / 445.6 MB, free: 13.75 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.006088/0.2851, allocations: 3.495 MB / 449.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2852, allocations: 8.031 kB / 449.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008253/0.286, allocations: 353 kB / 449.5 MB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003424/0.2894, allocations: 1.902 MB / 451.4 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.2896, allocations: 192.9 kB / 451.6 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003686/0.29, allocations: 247.9 kB / 451.8 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005371/0.2953, allocations: 3.422 MB / 455.2 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.837e-05/0.2954, allocations: 7.844 kB / 455.2 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.2957, allocations: 108 kB / 455.3 MB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/0.2958, allocations: 116.8 kB / 455.4 MB, free: 3.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004713/0.3005, allocations: 2.931 MB / 458.4 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01591/0.3164, allocations: 10.76 MB / 469.1 MB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002915/0.3194, allocations: 2.421 MB / 471.6 MB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001867/0.3213, allocations: 1.172 MB / 472.7 MB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002624/0.3216, allocations: 118.4 kB / 472.8 MB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.3216, allocations: 56.28 kB / 472.9 MB, free: 1.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=133): time 3.116e-06/0.3216, allocations: 0 / 472.9 MB, free: 1.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=147): time 0.01489/0.3365, allocations: 7.258 MB / 480.2 MB, free: 10.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.3366, allocations: 98.42 kB / 480.2 MB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/0.3392, allocations: 1.835 MB / 482.1 MB, free: 8.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.935e-05/0.3393, allocations: 53.7 kB / 482.1 MB, free: 8.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008418/0.3401, allocations: 1.214 MB / 483.4 MB, free: 7.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003875/0.3405, allocations: 0.4967 MB / 483.8 MB, free: 6.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004799/0.341, allocations: 315.3 kB / 484.2 MB, free: 6.289 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.3411, allocations: 301.1 kB / 484.4 MB, free: 5.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.3424, allocations: 0.8714 MB / 485.3 MB, free: 5.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.344, allocations: 1.31 MB / 486.6 MB, free: 3.609 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002928/0.3469, allocations: 2.257 MB / 488.9 MB, free: 1.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3469, allocations: 4 kB / 488.9 MB, free: 1.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004505/0.3515, allocations: 2.86 MB / 491.8 MB, free: 14.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.3515, allocations: 15.94 kB / 491.8 MB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.3515, allocations: 12 kB / 491.8 MB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001516/0.353, allocations: 0.6749 MB / 492.5 MB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.3543, allocations: 363.4 kB / 492.8 MB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.3644, allocations: 9.027 MB / 0.4901 GB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.3662, allocations: 115.8 kB / 0.4902 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001568/0.3664, allocations: 75.98 kB / 0.4903 GB, free: 3.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002395/0.3688, allocations: 1.577 MB / 0.4918 GB, free: 1.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001522/0.3703, allocations: 1.31 MB / 0.4931 GB, free: 496 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002837/0.3732, allocations: 2.233 MB / 0.4953 GB, free: 14.06 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.876e-06/0.3732, allocations: 7.938 kB / 0.4953 GB, free: 14.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=218) (initialization_lambda0): time 0.004536/0.3777, allocations: 2.833 MB / 0.498 GB, free: 11.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3778, allocations: 15.12 kB / 0.498 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.3778, allocations: 16 kB / 0.4981 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.3793, allocations: 0.6712 MB / 0.4987 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.3805, allocations: 355.4 kB / 0.4991 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009468/0.39, allocations: 9.044 MB / 0.5079 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.3915, allocations: 111.7 kB / 0.508 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.3917, allocations: 68.11 kB / 0.5081 GB, free: 500 kB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (181): * Single equations (assignments): 177 * 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,9,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.0005099/0.3922, allocations: 307.6 kB / 0.5084 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003835/0.3926, allocations: 197.6 kB / 0.5085 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00437/0.397, allocations: 2.555 MB / 0.511 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.397, allocations: 11.97 kB / 0.511 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.397, allocations: 7.938 kB / 0.5111 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009716/0.398, allocations: 466.5 kB / 0.5115 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.3982, allocations: 28.19 kB / 0.5115 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009654/0.3992, allocations: 91.89 kB / 0.5116 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.3994, allocations: 109.1 kB / 0.5117 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005116/0.4046, allocations: 2.713 MB / 0.5144 GB, free: 9.953 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004259/0.4088, allocations: 3.229 MB / 0.5175 GB, free: 6.707 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001177/0.41, allocations: 0.912 MB / 0.5184 GB, free: 5.793 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001775/0.4118, allocations: 1.26 MB / 0.5196 GB, free: 4.543 MB / 446.1 MB Notification: Performance of Backend: time 3.41e-07/0.4118, allocations: 0 / 0.5196 GB, free: 4.543 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005964/0.4178, allocations: 3.918 MB / 0.5235 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of SimCode: time 0.008261/0.4261, allocations: 5.744 MB / 0.5291 GB, free: 10.73 MB / 462.1 MB Notification: Performance of Templates: time 0.2479/0.674, allocations: 46.57 MB / 0.5746 GB, free: 99.29 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1)