Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001203/0.001203, allocations: 93.3 kB / 16.65 MB, free: 6.535 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.001294/0.001294, allocations: 175.1 kB / 17.56 MB, free: 6.184 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.716/1.716, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0005606/0.0005609, allocations: 15.12 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1647, allocations: 47.58 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.0163/0.1811, allocations: 10.79 MB / 339.1 MB, free: 8.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.194, allocations: 3.701 MB / 342.8 MB, free: 5.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004417/0.1985, allocations: 51.75 kB / 342.9 MB, free: 5.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004674/0.2032, allocations: 0.7109 MB / 343.6 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007087/0.2104, allocations: 0.8392 MB / 344.4 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002742/0.2132, allocations: 439.5 kB / 344.8 MB, free: 3.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008434/0.2216, allocations: 3.787 MB / 348.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005347/0.227, allocations: 2.105 MB / 350.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003745/0.2308, allocations: 1.109 MB / 351.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003955/0.2348, allocations: 1.536 MB / 353.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001383/0.2362, allocations: 168 kB / 353.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002203/0.2385, allocations: 267.8 kB / 353.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001833/0.2403, allocations: 0.8136 MB / 354.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004847/0.2452, allocations: 1.486 MB / 356.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007606/0.2528, allocations: 4.788 MB / 360.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.2529, allocations: 4 kB / 360.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.2529, allocations: 0 / 360.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001833/0.2531, allocations: 3.938 kB / 360.9 MB, free: 2.988 MB / 302.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.008688/0.2618, allocations: 2.927 MB / 363.8 MB, free: 15.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.267e-05/0.2619, allocations: 8.031 kB / 363.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001934/0.2639, allocations: 352.9 kB / 364.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004181/0.2681, allocations: 1.765 MB / 365.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.2683, allocations: 197.1 kB / 366.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005032/0.2688, allocations: 240 kB / 366.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007579/0.2764, allocations: 3.429 MB / 369.8 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-05/0.2765, allocations: 15.89 kB / 369.8 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002737/0.2768, allocations: 104 kB / 369.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/0.277, allocations: 116.8 kB / 370 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006008/0.283, allocations: 2.931 MB / 373 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3187/0.6017, allocations: 10.93 MB / 383.9 MB, free: 44.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003583/0.6054, allocations: 2.434 MB / 386.3 MB, free: 44.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/0.6076, allocations: 1.189 MB / 387.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003252/0.608, allocations: 127.7 kB / 387.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.608, allocations: 53.33 kB / 387.7 MB, free: 43.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 3.647e-06/0.6081, allocations: 0 / 387.7 MB, free: 43.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01778/0.6258, allocations: 7.296 MB / 395 MB, free: 40.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.522e-05/0.626, allocations: 102.2 kB / 395.1 MB, free: 40.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/0.6294, allocations: 1.833 MB / 396.9 MB, free: 40.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/0.6296, allocations: 53.64 kB / 397 MB, free: 39.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007656/0.6304, allocations: 1.212 MB / 398.2 MB, free: 38.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003879/0.6308, allocations: 0.4966 MB / 398.7 MB, free: 38.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.631, allocations: 140.9 kB / 398.8 MB, free: 38.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.801e-05/0.6311, allocations: 301.1 kB / 399.1 MB, free: 38.15 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.6323, allocations: 0.8556 MB / 400 MB, free: 37.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.6336, allocations: 1.314 MB / 401.3 MB, free: 36.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.6364, allocations: 2.271 MB / 403.6 MB, free: 35.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/0.6365, allocations: 3.969 kB / 403.6 MB, free: 35.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004511/0.641, allocations: 2.866 MB / 406.4 MB, free: 33.67 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000373/0.6414, allocations: 0.5007 MB / 406.9 MB, free: 33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/0.6414, allocations: 14.72 kB / 406.9 MB, free: 33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.643, allocations: 0.6712 MB / 407.6 MB, free: 32.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.6442, allocations: 359.6 kB / 408 MB, free: 32.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007835/0.652, allocations: 8.318 MB / 416.3 MB, free: 23.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.6539, allocations: 111.8 kB / 416.4 MB, free: 23.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.654, allocations: 71.98 kB / 416.5 MB, free: 23.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.6541, allocations: 4 kB / 416.5 MB, free: 23.71 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003752/0.6578, allocations: 2.64 MB / 419.1 MB, free: 21.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.6578, allocations: 16 kB / 419.1 MB, free: 21.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.6591, allocations: 0.6671 MB / 419.8 MB, free: 20.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.6603, allocations: 355.4 kB / 420.1 MB, free: 20.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007435/0.6677, allocations: 8.303 MB / 428.4 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/0.6699, allocations: 103.9 kB / 428.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.6701, allocations: 71.98 kB / 428.6 MB, free: 11.16 MB / 318.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.002082/0.6722, allocations: 0.9298 MB / 429.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005307/0.6727, allocations: 205.5 kB / 429.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003888/0.6766, allocations: 2.567 MB / 432.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.6766, allocations: 16 kB / 432.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.6766, allocations: 5.219 kB / 432.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.6766, allocations: 7.969 kB / 432.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008304/0.685, allocations: 5.44 MB / 437.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.685, allocations: 0 / 437.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008498/0.6859, allocations: 224 kB / 438 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/0.6873, allocations: 0.6987 MB / 438.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.078e-05/0.6874, allocations: 31.94 kB / 438.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01137/0.6987, allocations: 9.776 MB / 448.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.6988, allocations: 0 / 448.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006841/0.7057, allocations: 3.776 MB / 452.3 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/0.7072, allocations: 474.5 kB / 452.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/0.7075, allocations: 35.92 kB / 452.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009969/0.7085, allocations: 99.89 kB / 452.9 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004039/0.7089, allocations: 113.1 kB / 453 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.041e-05/0.709, allocations: 36 kB / 453 MB, free: 2.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002087/0.7111, allocations: 1.264 MB / 454.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7111, allocations: 4 kB / 454.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.004165/0.7153, allocations: 0.9948 MB / 455.3 MB, free: 15.76 MB / 350.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005457/0.7158, allocations: 199.1 kB / 455.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007487/0.7233, allocations: 4.514 MB / 460 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.7234, allocations: 0 / 460 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0026/0.726, allocations: 1.732 MB / 461.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00392/0.7299, allocations: 0.5891 MB / 462.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.7434, allocations: 7.089 MB / 469.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002228/0.7456, allocations: 2.103 MB / 471.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002447/0.7481, allocations: 0.5795 MB / 472.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003977/0.7485, allocations: 139.4 kB / 472.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of SimCode: time 1.803e-06/0.7485, allocations: 3.938 kB / 472.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of Templates: time 0.08407/0.8326, allocations: 39.53 MB / 0.4998 GB, free: 6.973 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)