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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.375/1.375, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007753/0.0007754, allocations: 94.62 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.722e-05/2.724e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07762/0.07767, allocations: 47.57 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2949/0.3726, allocations: 110.1 MB / 480.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.3729, allocations: 88.55 kB / 480.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1423/0.5153, allocations: 55.02 MB / 0.5227 GB, free: 9.242 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.5153, allocations: 0 / 0.5227 GB, free: 9.242 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001716/0.5155, allocations: 67.94 kB / 0.5227 GB, free: 9.176 MB / 410.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.004832/0.5203, allocations: 2.64 MB / 0.5253 GB, free: 6.473 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.5204, allocations: 8.031 kB / 0.5253 GB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008967/0.5213, allocations: 356 kB / 0.5257 GB, free: 6.113 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003631/0.5249, allocations: 1.941 MB / 0.5276 GB, free: 4.117 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.5251, allocations: 185.7 kB / 0.5277 GB, free: 3.934 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003557/0.5254, allocations: 243.9 kB / 0.528 GB, free: 3.695 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005612/0.5311, allocations: 3.333 MB / 0.5312 GB, free: 192 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.586e-05/0.5312, allocations: 11.84 kB / 0.5312 GB, free: 180 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.5314, allocations: 108 kB / 0.5313 GB, free: 72 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.198/0.7295, allocations: 113.3 kB / 0.5314 GB, free: 96.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005743/0.7352, allocations: 2.699 MB / 0.5341 GB, free: 96.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01721/0.7525, allocations: 10.92 MB / 0.5447 GB, free: 94.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.7552, allocations: 2.419 MB / 0.5471 GB, free: 93.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.7566, allocations: 1.057 MB / 0.5481 GB, free: 93.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002908/0.7569, allocations: 139.8 kB / 0.5483 GB, free: 93.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.757, allocations: 53.12 kB / 0.5483 GB, free: 93.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 5.43e-06/0.757, allocations: 3.656 kB / 0.5483 GB, free: 93.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.01066/0.7677, allocations: 5.483 MB / 0.5537 GB, free: 92.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.7677, allocations: 97.77 kB / 0.5538 GB, free: 92.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/0.7698, allocations: 1.569 MB / 0.5553 GB, free: 92.08 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.77, allocations: 46.58 kB / 0.5553 GB, free: 92.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006368/0.7706, allocations: 1.23 MB / 0.5565 GB, free: 91.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/0.7709, allocations: 0.4992 MB / 0.557 GB, free: 90.87 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.691e-05/0.771, allocations: 35.88 kB / 0.5571 GB, free: 90.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.7712, allocations: 380.2 kB / 0.5574 GB, free: 90.51 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.7722, allocations: 0.8219 MB / 0.5582 GB, free: 90.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.7733, allocations: 1.279 MB / 0.5595 GB, free: 89.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.7745, allocations: 1.009 MB / 0.5605 GB, free: 89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.7745, allocations: 3.938 kB / 0.5605 GB, free: 89 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003824/0.7783, allocations: 2.8 MB / 0.5632 GB, free: 88.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001028/0.7794, allocations: 5.586 MB / 0.5687 GB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.7794, allocations: 13.88 kB / 0.5687 GB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.7808, allocations: 0.6674 MB / 0.5693 GB, free: 81.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.7821, allocations: 374.3 kB / 0.5697 GB, free: 81.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006981/0.7891, allocations: 8.259 MB / 0.5777 GB, free: 76.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/0.791, allocations: 118.6 kB / 0.5779 GB, free: 76.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/0.7912, allocations: 73.55 kB / 0.5779 GB, free: 76.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.967e-06/0.7912, allocations: 3.625 kB / 0.5779 GB, free: 76.07 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003484/0.7947, allocations: 2.604 MB / 0.5805 GB, free: 75.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.7947, allocations: 12 kB / 0.5805 GB, free: 75.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.796, allocations: 0.6699 MB / 0.5811 GB, free: 74.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.7973, allocations: 363.6 kB / 0.5815 GB, free: 74.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00691/0.8042, allocations: 8.282 MB / 0.5896 GB, free: 69.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.8059, allocations: 103.2 kB / 0.5897 GB, free: 69.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001929/0.8061, allocations: 68.44 kB / 0.5897 GB, free: 69.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * 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.0004038/0.8065, allocations: 221 kB / 0.5899 GB, free: 68.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004021/0.8069, allocations: 201.6 kB / 0.5901 GB, free: 68.83 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003787/0.8107, allocations: 2.554 MB / 0.5926 GB, free: 67.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.8107, allocations: 18.67 kB / 0.5927 GB, free: 67.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.8108, allocations: 6.781 kB / 0.5927 GB, free: 67.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.8108, allocations: 6.516 kB / 0.5927 GB, free: 67.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007706/0.8185, allocations: 5.363 MB / 0.5979 GB, free: 65.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.8185, allocations: 2.953 kB / 0.5979 GB, free: 65.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009252/0.8195, allocations: 231.8 kB / 0.5981 GB, free: 65.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/0.8209, allocations: 0.6922 MB / 0.5988 GB, free: 65.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.561e-05/0.821, allocations: 34.33 kB / 0.5988 GB, free: 65.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007597/0.8286, allocations: 9.765 MB / 0.6084 GB, free: 58.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.8286, allocations: 3.094 kB / 0.6084 GB, free: 58.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004579/0.8332, allocations: 3.857 MB / 0.6121 GB, free: 56.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/0.8343, allocations: 479.6 kB / 0.6126 GB, free: 56.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000236/0.8346, allocations: 28 kB / 0.6126 GB, free: 56.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009682/0.8356, allocations: 100.1 kB / 0.6127 GB, free: 56.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/0.8358, allocations: 123.5 kB / 0.6128 GB, free: 55.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.038e-05/0.8359, allocations: 46.25 kB / 0.6129 GB, free: 55.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001554/0.8375, allocations: 1.202 MB / 0.6141 GB, free: 54.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8375, allocations: 0 / 0.6141 GB, free: 54.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003023/0.8405, allocations: 1.045 MB / 0.6151 GB, free: 53.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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.0006561/0.8412, allocations: 408.6 kB / 0.6155 GB, free: 53.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005084/0.8463, allocations: 4.488 MB / 0.6198 GB, free: 49.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.8463, allocations: 384 / 0.6198 GB, free: 49.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.8482, allocations: 1.719 MB / 0.6215 GB, free: 47.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.851, allocations: 0.5772 MB / 0.6221 GB, free: 47.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008389/0.8594, allocations: 4.896 MB / 0.6269 GB, free: 42.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001444/0.8609, allocations: 2.15 MB / 0.629 GB, free: 41.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002549/0.8634, allocations: 0.8772 MB / 0.6298 GB, free: 40.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.8637, allocations: 107.2 kB / 0.6299 GB, free: 40.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.8637, allocations: 0 / 0.6299 GB, free: 40.45 MB / 410.7 MB Notification: Performance of Templates: time 0.05606/0.9198, allocations: 44.64 MB / 0.6735 GB, free: 1.32 MB / 410.7 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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches