Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 114.3 kB / 17.75 MB, free: 5.309 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.001024/0.001024, allocations: 189.3 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009458/0.0009459, allocations: 47.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2162, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.01577/0.232, allocations: 15.67 MB / 417.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008683/0.2407, allocations: 5.166 MB / 422.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00178/0.2425, allocations: 99.62 kB / 422.4 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002412/0.2449, allocations: 1.122 MB / 423.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003125/0.2481, allocations: 1.367 MB / 424.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.2499, allocations: 0.9232 MB / 425.8 MB, free: 444 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003701/0.2536, allocations: 4.02 MB / 429.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003238/0.2569, allocations: 3.191 MB / 433 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.2588, allocations: 1.834 MB / 434.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002207/0.261, allocations: 2.102 MB / 436.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005612/0.2616, allocations: 496 kB / 437.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001113/0.2627, allocations: 0.6871 MB / 438.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009332/0.2636, allocations: 1.153 MB / 439.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001951/0.2656, allocations: 2.12 MB / 441.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005614/0.2712, allocations: 6.513 MB / 447.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2712, allocations: 0 / 447.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2712, allocations: 0 / 447.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.786e-05/0.2713, allocations: 0 / 447.9 MB, free: 10.19 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.009187/0.2805, allocations: 4.328 MB / 452.2 MB, free: 5.789 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.2806, allocations: 12.03 kB / 452.2 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002745/0.2833, allocations: 0.6172 MB / 452.8 MB, free: 5.156 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003914/0.2872, allocations: 2.363 MB / 455.2 MB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.2874, allocations: 234.4 kB / 455.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004376/0.2879, allocations: 311.9 kB / 455.7 MB, free: 2.203 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006808/0.2947, allocations: 4.181 MB / 459.9 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-05/0.2948, allocations: 11.91 kB / 459.9 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002987/0.2951, allocations: 128 kB / 460 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.2952, allocations: 138.1 kB / 460.2 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005729/0.3009, allocations: 3.572 MB / 463.8 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01836/0.3193, allocations: 13.56 MB / 477.3 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005367/0.3247, allocations: 5.9 MB / 483.2 MB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/0.3266, allocations: 1.366 MB / 484.6 MB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004975/0.3316, allocations: 3.158 MB / 487.7 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.3317, allocations: 51.88 kB / 487.8 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of pre-optimization done (n=138): time 3.066e-06/0.3317, allocations: 0 / 487.8 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01223/0.3439, allocations: 6.645 MB / 494.4 MB, free: 10.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.344, allocations: 90.42 kB / 494.5 MB, free: 9.926 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/0.3466, allocations: 1.937 MB / 496.5 MB, free: 7.945 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.41e-05/0.3467, allocations: 45.7 kB / 496.5 MB, free: 7.895 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009972/0.3477, allocations: 1.455 MB / 498 MB, free: 6.422 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003574/0.3481, allocations: 485 kB / 498.4 MB, free: 5.941 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004576/0.3485, allocations: 327.2 kB / 498.8 MB, free: 5.617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.576e-05/0.3486, allocations: 305.1 kB / 499.1 MB, free: 5.316 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.3498, allocations: 0.7621 MB / 499.8 MB, free: 4.551 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.3513, allocations: 1.298 MB / 0.4894 GB, free: 3.012 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002682/0.354, allocations: 2.138 MB / 0.4915 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.354, allocations: 4 kB / 0.4915 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004236/0.3582, allocations: 2.741 MB / 0.4941 GB, free: 13.86 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.3583, allocations: 12 kB / 0.4941 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.3583, allocations: 16 kB / 0.4942 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.3595, allocations: 0.5267 MB / 0.4947 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.3608, allocations: 367.4 kB / 0.495 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007607/0.3685, allocations: 7.92 MB / 0.5028 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.3699, allocations: 95.94 kB / 0.5029 GB, free: 4.492 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.3701, allocations: 75.98 kB / 0.5029 GB, free: 4.418 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002482/0.3726, allocations: 1.624 MB / 0.5045 GB, free: 2.789 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001441/0.374, allocations: 1.279 MB / 0.5058 GB, free: 1.281 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002599/0.3766, allocations: 2.118 MB / 0.5078 GB, free: 14.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.027e-06/0.3766, allocations: 8 kB / 0.5078 GB, free: 14.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=225) (initialization_lambda0): time 0.004068/0.3807, allocations: 2.714 MB / 0.5105 GB, free: 12.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3807, allocations: 12 kB / 0.5105 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.3808, allocations: 16 kB / 0.5105 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.3819, allocations: 0.5195 MB / 0.511 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.3832, allocations: 363.4 kB / 0.5114 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007447/0.3907, allocations: 7.918 MB / 0.5191 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.392, allocations: 83.94 kB / 0.5192 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.3921, allocations: 76 kB / 0.5193 GB, free: 2.766 MB / 446.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.000369/0.3925, allocations: 311.6 kB / 0.5195 GB, free: 2.453 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002834/0.3928, allocations: 209.5 kB / 0.5197 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00398/0.3967, allocations: 2.49 MB / 0.5222 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.3968, allocations: 7.969 kB / 0.5222 GB, free: 15.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3968, allocations: 0 / 0.5222 GB, free: 15.69 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008017/0.3976, allocations: 462.4 kB / 0.5226 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002647/0.3979, allocations: 28 kB / 0.5227 GB, free: 15.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009269/0.3988, allocations: 71.92 kB / 0.5227 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.399, allocations: 113.1 kB / 0.5228 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004836/0.4039, allocations: 2.453 MB / 0.5252 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003786/0.4077, allocations: 2.766 MB / 0.5279 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001091/0.4088, allocations: 0.7987 MB / 0.5287 GB, free: 8.945 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0019/0.4107, allocations: 1.321 MB / 0.53 GB, free: 7.602 MB / 462.1 MB Notification: Performance of Backend: time 3e-07/0.4107, allocations: 3.938 kB / 0.53 GB, free: 7.598 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005816/0.4165, allocations: 3.744 MB / 0.5337 GB, free: 3.73 MB / 462.1 MB Notification: Performance of SimCode: time 0.1724/0.5889, allocations: 6.463 MB / 0.54 GB, free: 129.7 MB / 462.1 MB Notification: Performance of Templates: time 0.05335/0.6423, allocations: 46.95 MB / 0.5858 GB, free: 92.01 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1)