Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001972/0.001972, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008517/0.0008519, allocations: 96.91 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 12 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2311, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.008754/0.2399, allocations: 10.13 MB / 384.7 MB, free: 37.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006512/0.2464, allocations: 3.559 MB / 388.2 MB, free: 34.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.248, allocations: 50.78 kB / 388.3 MB, free: 34.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.2496, allocations: 0.6579 MB / 389 MB, free: 34.04 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5153:20-5153:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5164:20-5164:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFTyping.typeBindings: time 0.002105/0.2517, allocations: 0.7896 MB / 389.7 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008111/0.2525, allocations: 322.6 kB / 390.1 MB, free: 33.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002679/0.2552, allocations: 3.408 MB / 393.5 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.2567, allocations: 1.676 MB / 395.1 MB, free: 28.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001305/0.2581, allocations: 1.105 MB / 396.2 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001681/0.2598, allocations: 1.483 MB / 397.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000356/0.2601, allocations: 164 kB / 397.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006318/0.2608, allocations: 227.9 kB / 398.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005633/0.2613, allocations: 0.8215 MB / 398.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005305/0.2619, allocations: 0.6056 MB / 399.5 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002612/0.2645, allocations: 4.106 MB / 403.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.2645, allocations: 4 kB / 403.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2645, allocations: 0 / 403.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001136/0.2646, allocations: 0 / 403.7 MB, free: 19.63 MB / 298.7 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.004738/0.2694, allocations: 2.958 MB / 406.6 MB, free: 16.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2694, allocations: 8.031 kB / 406.6 MB, free: 16.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006837/0.2701, allocations: 360 kB / 407 MB, free: 16.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/0.2724, allocations: 1.711 MB / 408.7 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.241e-05/0.2725, allocations: 181 kB / 408.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002821/0.2728, allocations: 248 kB / 409.1 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004492/0.2773, allocations: 3.407 MB / 412.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.009e-05/0.2774, allocations: 4 kB / 412.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/0.2776, allocations: 104 kB / 412.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-05/0.2777, allocations: 120.8 kB / 412.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004066/0.2818, allocations: 2.923 MB / 415.7 MB, free: 7.383 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01385/0.2956, allocations: 10.94 MB / 426.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00285/0.2985, allocations: 2.429 MB / 429 MB, free: 9.551 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.3003, allocations: 1.176 MB / 430.2 MB, free: 8.379 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002598/0.3006, allocations: 126.4 kB / 430.3 MB, free: 8.238 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.004e-05/0.3007, allocations: 51.88 kB / 430.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 5.03e-06/0.3007, allocations: 4 kB / 430.4 MB, free: 8.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01525/0.3159, allocations: 7.247 MB / 437.6 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.3161, allocations: 102.4 kB / 437.7 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002667/0.3187, allocations: 1.819 MB / 439.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.3189, allocations: 49.7 kB / 439.6 MB, free: 14.81 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008811/0.3198, allocations: 1.222 MB / 440.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003896/0.3202, allocations: 0.4929 MB / 441.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-05/0.3202, allocations: 32 kB / 441.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.3204, allocations: 377.9 kB / 441.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.3217, allocations: 0.8432 MB / 442.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.3233, allocations: 1.318 MB / 443.9 MB, free: 10.31 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.3248, allocations: 1.021 MB / 444.9 MB, free: 9.289 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.3249, allocations: 4 kB / 444.9 MB, free: 9.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004579/0.3294, allocations: 2.849 MB / 447.7 MB, free: 6.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002922/0.3297, allocations: 0.5026 MB / 448.2 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.3298, allocations: 20 kB / 448.3 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.3313, allocations: 0.656 MB / 448.9 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3325, allocations: 363.4 kB / 449.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008561/0.3411, allocations: 8.313 MB / 457.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/0.3426, allocations: 115.9 kB / 457.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.3427, allocations: 71.98 kB / 457.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.3428, allocations: 0 / 457.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004167/0.3469, allocations: 2.63 MB / 460.4 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/0.347, allocations: 12 kB / 460.4 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/0.3484, allocations: 0.6674 MB / 461.1 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.3497, allocations: 355.4 kB / 461.4 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008604/0.3583, allocations: 8.294 MB / 469.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.3598, allocations: 99.89 kB / 469.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.36, allocations: 68 kB / 469.9 MB, free: 15.23 MB / 362.7 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_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001526/0.3615, allocations: 0.9297 MB / 470.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003499/0.3619, allocations: 205.6 kB / 471 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004081/0.366, allocations: 2.551 MB / 473.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.366, allocations: 19.95 kB / 473.6 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.366, allocations: 4 kB / 473.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.366, allocations: 7.969 kB / 473.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008169/0.3742, allocations: 5.433 MB / 479 MB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.3742, allocations: 4 kB / 479 MB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009239/0.3752, allocations: 215.7 kB / 479.2 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/0.3768, allocations: 0.7023 MB / 479.9 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.229e-05/0.3769, allocations: 31.98 kB / 480 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009542/0.3864, allocations: 9.753 MB / 489.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3865, allocations: 0 / 489.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005731/0.3922, allocations: 3.754 MB / 493.5 MB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.3933, allocations: 478.5 kB / 493.9 MB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004705/0.3937, allocations: 35.98 kB / 494 MB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.3949, allocations: 99.83 kB / 494.1 MB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002795/0.3952, allocations: 121.2 kB / 494.2 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.3953, allocations: 39.94 kB / 494.2 MB, free: 6.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002086/0.3974, allocations: 1.248 MB / 495.5 MB, free: 4.852 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3974, allocations: 0 / 495.5 MB, free: 4.852 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003188/0.4006, allocations: 1.004 MB / 496.5 MB, free: 3.848 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003465/0.401, allocations: 159 kB / 496.6 MB, free: 3.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006298/0.4073, allocations: 4.474 MB / 0.4894 GB, free: 15.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.4073, allocations: 0 / 0.4894 GB, free: 15.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.4097, allocations: 1.739 MB / 0.4911 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/0.4126, allocations: 0.6031 MB / 0.4917 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.4232, allocations: 6.838 MB / 0.4983 GB, free: 5.816 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/0.4252, allocations: 2.071 MB / 0.5004 GB, free: 3.707 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.4257, allocations: 139.4 kB / 0.5005 GB, free: 3.57 MB / 394.7 MB Notification: Performance of SimCode: time 8.11e-07/0.4257, allocations: 0 / 0.5005 GB, free: 3.57 MB / 394.7 MB Notification: Performance of Templates: time 0.249/0.6747, allocations: 86.48 MB / 0.585 GB, free: 46.47 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)