Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 109.7 kB / 18.4 MB, free: 4.676 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.001046/0.001046, allocations: 187 kB / 19.34 MB, free: 3.754 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.27/1.27, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001175/0.001175, allocations: 59.91 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07141/0.07259, allocations: 46.62 MB / 375.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.1585/0.2311, allocations: 11.44 MB / 387.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005689/0.2369, allocations: 3.764 MB / 391 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000901/0.2378, allocations: 56.19 kB / 391.1 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.2394, allocations: 0.8177 MB / 391.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001896/0.2413, allocations: 0.9274 MB / 392.8 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008992/0.2422, allocations: 0.4905 MB / 393.3 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002831/0.245, allocations: 3.349 MB / 396.7 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002488/0.2475, allocations: 2.543 MB / 399.2 MB, free: 452 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.2493, allocations: 1.47 MB / 400.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002155/0.2514, allocations: 1.797 MB / 402.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005022/0.252, allocations: 393.8 kB / 402.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008692/0.2528, allocations: 483 kB / 403.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.2539, allocations: 1.09 MB / 404.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001671/0.2556, allocations: 1.747 MB / 406.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00448/0.2601, allocations: 5.132 MB / 411.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2601, allocations: 0 / 411.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2601, allocations: 3.938 kB / 411.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.713e-05/0.2602, allocations: 0 / 411.3 MB, free: 9.645 MB / 334.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.006168/0.2663, allocations: 3.463 MB / 414.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.2664, allocations: 8.469 kB / 414.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007945/0.2672, allocations: 349.2 kB / 415.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002698/0.2699, allocations: 1.788 MB / 416.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.2701, allocations: 193.9 kB / 417.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003671/0.2704, allocations: 251.8 kB / 417.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005481/0.2759, allocations: 3.418 MB / 420.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.509e-05/0.276, allocations: 0 / 420.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000252/0.2763, allocations: 111.9 kB / 420.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/0.2764, allocations: 116.8 kB / 421 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004695/0.2811, allocations: 2.927 MB / 423.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01544/0.2965, allocations: 10.79 MB / 434.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002793/0.2994, allocations: 2.418 MB / 437.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/0.3012, allocations: 1.168 MB / 438.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002359/0.3014, allocations: 126.4 kB / 438.4 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.3015, allocations: 44.34 kB / 438.5 MB, free: 240 kB / 350.1 MB Notification: Performance of pre-optimization done (n=133): time 3.206e-06/0.3015, allocations: 0 / 438.5 MB, free: 240 kB / 350.1 MB Notification: Performance of matching and sorting (n=147): time 0.01509/0.3166, allocations: 7.258 MB / 445.7 MB, free: 8.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.3166, allocations: 90.42 kB / 445.8 MB, free: 8.742 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002494/0.3192, allocations: 1.85 MB / 447.7 MB, free: 6.895 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.953e-05/0.3193, allocations: 45.7 kB / 447.7 MB, free: 6.844 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008267/0.3201, allocations: 1.21 MB / 448.9 MB, free: 5.617 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003768/0.3205, allocations: 0.4929 MB / 449.4 MB, free: 5.117 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00049/0.321, allocations: 319.2 kB / 449.7 MB, free: 4.797 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3211, allocations: 309.1 kB / 450 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.3224, allocations: 0.8596 MB / 450.9 MB, free: 3.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.324, allocations: 1.314 MB / 452.2 MB, free: 2.117 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/0.327, allocations: 2.264 MB / 454.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.313e-06/0.327, allocations: 4 kB / 454.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004487/0.3315, allocations: 2.849 MB / 457.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3316, allocations: 15.94 kB / 457.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.3316, allocations: 12 kB / 457.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.3331, allocations: 0.675 MB / 458 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.3344, allocations: 351.4 kB / 458.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009545/0.344, allocations: 9.065 MB / 467.4 MB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.3454, allocations: 115.8 kB / 467.5 MB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.3456, allocations: 71.94 kB / 467.6 MB, free: 2.059 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002396/0.348, allocations: 1.593 MB / 469.2 MB, free: 472 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00152/0.3495, allocations: 1.299 MB / 470.5 MB, free: 14.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002822/0.3523, allocations: 2.241 MB / 472.7 MB, free: 12.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.923e-06/0.3523, allocations: 8 kB / 472.8 MB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization_lambda0): time 0.004444/0.3568, allocations: 2.845 MB / 475.6 MB, free: 9.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.3568, allocations: 11.28 kB / 475.6 MB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.3568, allocations: 16 kB / 475.6 MB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.3583, allocations: 0.662 MB / 476.3 MB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.3596, allocations: 355.4 kB / 476.6 MB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009519/0.3691, allocations: 9.041 MB / 485.7 MB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.3708, allocations: 115.7 kB / 485.8 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.3709, allocations: 64 kB / 485.9 MB, free: 14.98 MB / 414.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.0004284/0.3713, allocations: 295.8 kB / 486.1 MB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000348/0.3717, allocations: 201.6 kB / 486.3 MB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004472/0.3762, allocations: 2.551 MB / 488.9 MB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.3762, allocations: 7.969 kB / 488.9 MB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3762, allocations: 0 / 488.9 MB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008501/0.3771, allocations: 474.5 kB / 489.4 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000325/0.3774, allocations: 28 kB / 489.4 MB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.3785, allocations: 99.88 kB / 489.5 MB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/0.3787, allocations: 105.1 kB / 489.6 MB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005551/0.3843, allocations: 2.71 MB / 492.3 MB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004637/0.389, allocations: 3.236 MB / 495.5 MB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001279/0.3903, allocations: 0.9198 MB / 496.5 MB, free: 4.281 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00193/0.3922, allocations: 1.256 MB / 497.7 MB, free: 3.035 MB / 414.1 MB Notification: Performance of Backend: time 3.3e-07/0.3922, allocations: 0 / 497.7 MB, free: 3.035 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006445/0.3987, allocations: 3.898 MB / 0.4899 GB, free: 15.02 MB / 430.1 MB Notification: Performance of SimCode: time 0.008696/0.4074, allocations: 5.746 MB / 0.4955 GB, free: 9.207 MB / 430.1 MB Notification: Performance of Templates: time 0.07175/0.4791, allocations: 46.43 MB / 0.5408 GB, free: 10.68 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)