Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_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.00126/0.001261, allocations: 108 kB / 18.35 MB, free: 4.812 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.001251/0.001251, allocations: 192.2 kB / 19.29 MB, free: 3.887 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.247/1.247, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001199/0.001199, allocations: 51.92 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07285, allocations: 46.63 MB / 328.7 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01573/0.08862, allocations: 15.62 MB / 344.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008544/0.09719, allocations: 5.198 MB / 349.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.09854, allocations: 87.62 kB / 349.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002164/0.1007, allocations: 1.064 MB / 350.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00255/0.1033, allocations: 1.32 MB / 352 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.1049, allocations: 0.9274 MB / 353 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003383/0.1083, allocations: 4.041 MB / 357 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003112/0.1115, allocations: 3.115 MB / 360.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.1134, allocations: 1.818 MB / 361.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.1157, allocations: 2.094 MB / 364 MB, free: 232 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005839/0.1163, allocations: 0.4922 MB / 364.5 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.1174, allocations: 0.6833 MB / 365.2 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008376/0.1183, allocations: 1.157 MB / 366.4 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.1199, allocations: 2.12 MB / 368.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004896/0.1248, allocations: 6.488 MB / 375 MB, free: 5.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1249, allocations: 0 / 375 MB, free: 5.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1249, allocations: 0 / 375 MB, free: 5.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.41e-05/0.1249, allocations: 0 / 375 MB, free: 5.254 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.008453/0.1334, allocations: 4.328 MB / 379.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1334, allocations: 8.031 kB / 379.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002686/0.1361, allocations: 0.6211 MB / 379.9 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1315/0.2677, allocations: 2.221 MB / 382.1 MB, free: 49.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.2679, allocations: 235.8 kB / 382.4 MB, free: 49.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005775/0.2685, allocations: 306.1 kB / 382.7 MB, free: 49.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006496/0.275, allocations: 4.175 MB / 386.8 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.575e-05/0.275, allocations: 11.14 kB / 386.9 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002612/0.2753, allocations: 127.8 kB / 387 MB, free: 47.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001293/0.2754, allocations: 147.7 kB / 387.1 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005583/0.281, allocations: 3.555 MB / 390.7 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0148/0.2958, allocations: 13.59 MB / 404.3 MB, free: 36.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004003/0.2999, allocations: 5.892 MB / 410.2 MB, free: 30.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/0.3015, allocations: 1.363 MB / 411.5 MB, free: 29.81 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003856/0.3054, allocations: 3.174 MB / 414.7 MB, free: 26.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.3054, allocations: 47.88 kB / 414.7 MB, free: 26.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=138): time 2.726e-06/0.3054, allocations: 0 / 414.7 MB, free: 26.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01032/0.3157, allocations: 6.633 MB / 421.4 MB, free: 19.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.3158, allocations: 94.42 kB / 421.5 MB, free: 19.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.3177, allocations: 1.934 MB / 423.4 MB, free: 17.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.396e-05/0.3178, allocations: 53.7 kB / 423.5 MB, free: 17.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005768/0.3184, allocations: 1.446 MB / 424.9 MB, free: 16.13 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.3186, allocations: 485.5 kB / 425.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003925/0.319, allocations: 327.2 kB / 425.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.24e-05/0.3191, allocations: 312 kB / 426 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009501/0.32, allocations: 0.7621 MB / 426.8 MB, free: 14.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.3212, allocations: 1.294 MB / 428.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002093/0.3233, allocations: 2.129 MB / 430.2 MB, free: 10.38 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.3233, allocations: 8 kB / 430.2 MB, free: 10.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003369/0.3267, allocations: 2.757 MB / 433 MB, free: 7.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3267, allocations: 20.02 kB / 433 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.3267, allocations: 16 kB / 433 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009769/0.3277, allocations: 0.5099 MB / 433.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.3289, allocations: 379.3 kB / 433.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006036/0.335, allocations: 7.908 MB / 441.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.3361, allocations: 92.03 kB / 441.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.3362, allocations: 79.98 kB / 441.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002309/0.3385, allocations: 1.62 MB / 443.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001419/0.34, allocations: 1.294 MB / 444.9 MB, free: 11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002582/0.3426, allocations: 2.107 MB / 447 MB, free: 8.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.274e-06/0.3426, allocations: 4 kB / 447 MB, free: 8.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=225) (initialization_lambda0): time 0.003984/0.3466, allocations: 2.737 MB / 449.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3466, allocations: 12 kB / 449.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.3466, allocations: 19.94 kB / 449.7 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.3477, allocations: 0.5193 MB / 450.3 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.349, allocations: 375.4 kB / 450.6 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007319/0.3563, allocations: 7.904 MB / 458.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.3575, allocations: 87.88 kB / 458.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.3577, allocations: 79.98 kB / 458.7 MB, free: 12.47 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.0003639/0.358, allocations: 299.9 kB / 459 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/0.3583, allocations: 209.5 kB / 459.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003934/0.3623, allocations: 2.49 MB / 461.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.3623, allocations: 7.969 kB / 461.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3623, allocations: 0 / 461.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006744/0.363, allocations: 466.4 kB / 462.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.3632, allocations: 24 kB / 462.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008793/0.3641, allocations: 71.92 kB / 462.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.3643, allocations: 121 kB / 462.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004758/0.3691, allocations: 2.447 MB / 464.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004031/0.3731, allocations: 2.77 MB / 467.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001089/0.3742, allocations: 0.7871 MB / 468.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001988/0.3762, allocations: 1.325 MB / 469.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of Backend: time 3.91e-07/0.3762, allocations: 0 / 469.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00617/0.3824, allocations: 3.762 MB / 473.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 0.009729/0.3922, allocations: 6.471 MB / 479.9 MB, free: 6.988 MB / 366.1 MB Notification: Performance of Templates: time 0.07003/0.4622, allocations: 46.23 MB / 0.5138 GB, free: 8.707 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)