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.001981/0.00198, allocations: 181.5 kB / 17.41 MB, free: 4.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.897/2.897, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.001032/0.001032, allocations: 85.44 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006435/0.0006435, allocations: 8 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.509/0.5097, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.222/0.7318, allocations: 110.4 MB / 486.1 MB, free: 2.176 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/0.7322, allocations: 99.95 kB / 486.2 MB, free: 2.078 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5956/1.328, allocations: 54.88 MB / 0.5284 GB, free: 89.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.647e-06/1.328, allocations: 4 kB / 0.5284 GB, free: 89.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004234/1.328, allocations: 75.88 kB / 0.5285 GB, free: 88.98 MB / 378.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.01301/1.341, allocations: 2.935 MB / 0.5314 GB, free: 85.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.243e-05/1.341, allocations: 8.031 kB / 0.5314 GB, free: 85.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002986/1.344, allocations: 361 kB / 0.5317 GB, free: 85.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008611/1.353, allocations: 2.018 MB / 0.5337 GB, free: 83.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003173/1.353, allocations: 185.4 kB / 0.5339 GB, free: 83.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/1.355, allocations: 252.3 kB / 0.5341 GB, free: 83.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01144/1.366, allocations: 3.403 MB / 0.5374 GB, free: 79.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000136/1.367, allocations: 12.12 kB / 0.5374 GB, free: 79.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004536/1.367, allocations: 107.9 kB / 0.5375 GB, free: 79.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001662/1.367, allocations: 112.8 kB / 0.5377 GB, free: 79.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00895/1.376, allocations: 2.783 MB / 0.5404 GB, free: 76.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02804/1.404, allocations: 10.92 MB / 0.551 GB, free: 65.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00441/1.409, allocations: 2.481 MB / 0.5535 GB, free: 62.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002347/1.411, allocations: 1.084 MB / 0.5545 GB, free: 61.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004507/1.412, allocations: 138.4 kB / 0.5547 GB, free: 61.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/1.412, allocations: 51.81 kB / 0.5547 GB, free: 61.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 6.392e-06/1.412, allocations: 0 / 0.5547 GB, free: 61.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02307/1.435, allocations: 7.313 MB / 0.5618 GB, free: 53.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/1.435, allocations: 94.42 kB / 0.5619 GB, free: 53.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004196/1.439, allocations: 1.792 MB / 0.5637 GB, free: 52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005136/1.44, allocations: 49.7 kB / 0.5637 GB, free: 51.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/1.441, allocations: 1.218 MB / 0.5649 GB, free: 50.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008675/1.442, allocations: 0.4968 MB / 0.5654 GB, free: 50.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/1.442, allocations: 40 kB / 0.5654 GB, free: 50.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001827/1.442, allocations: 381.8 kB / 0.5658 GB, free: 49.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/1.444, allocations: 0.851 MB / 0.5666 GB, free: 48.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/1.447, allocations: 1.313 MB / 0.5679 GB, free: 47.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004553/1.451, allocations: 2.26 MB / 0.5701 GB, free: 44.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.146e-05/1.451, allocations: 8 kB / 0.5701 GB, free: 44.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007713/1.459, allocations: 2.86 MB / 0.5729 GB, free: 42.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003736/1.46, allocations: 0.4901 MB / 0.5734 GB, free: 41.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/1.46, allocations: 16 kB / 0.5734 GB, free: 41.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002353/1.462, allocations: 0.6645 MB / 0.5741 GB, free: 40.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002227/1.464, allocations: 371.4 kB / 0.5744 GB, free: 40.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.476, allocations: 8.292 MB / 0.5825 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003238/1.48, allocations: 115.8 kB / 0.5826 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000501/1.48, allocations: 72 kB / 0.5827 GB, free: 31.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/1.48, allocations: 4 kB / 0.5827 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006567/1.487, allocations: 2.642 MB / 0.5853 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.477e-05/1.487, allocations: 16 kB / 0.5853 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/1.489, allocations: 0.6675 MB / 0.586 GB, free: 28.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002395/1.492, allocations: 371.4 kB / 0.5863 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/1.505, allocations: 8.288 MB / 0.5944 GB, free: 19.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003311/1.508, allocations: 99.8 kB / 0.5945 GB, free: 18.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005239/1.509, allocations: 75.98 kB / 0.5946 GB, free: 18.89 MB / 378.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 () * Number of clocked 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.003318/1.512, allocations: 0.93 MB / 0.5955 GB, free: 17.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009386/1.513, allocations: 201.6 kB / 0.5957 GB, free: 17.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006866/1.52, allocations: 2.578 MB / 0.5982 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.517e-05/1.52, allocations: 20 kB / 0.5982 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/1.52, allocations: 4 kB / 0.5982 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.336e-05/1.52, allocations: 7.969 kB / 0.5982 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01461/1.535, allocations: 5.402 MB / 0.6035 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.535, allocations: 7.938 kB / 0.6035 GB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/1.537, allocations: 239.9 kB / 0.6037 GB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002586/1.539, allocations: 0.6908 MB / 0.6044 GB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002048/1.539, allocations: 35.98 kB / 0.6044 GB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01447/1.554, allocations: 9.804 MB / 0.614 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/1.554, allocations: 4 kB / 0.614 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/1.565, allocations: 3.797 MB / 0.6177 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002672/1.568, allocations: 466.8 kB / 0.6182 GB, free: 9.945 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001077/1.569, allocations: 35.98 kB / 0.6182 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002343/1.571, allocations: 100.2 kB / 0.6183 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000674/1.572, allocations: 128.9 kB / 0.6184 GB, free: 9.688 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002118/1.572, allocations: 47.98 kB / 0.6185 GB, free: 9.641 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004559/1.577, allocations: 1.221 MB / 0.6197 GB, free: 8.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.143e-06/1.577, allocations: 0 / 0.6197 GB, free: 8.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008722/1.586, allocations: 1.043 MB / 0.6207 GB, free: 7.387 MB / 394.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 () * Number of clocked 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.001571/1.587, allocations: 411.1 kB / 0.6211 GB, free: 6.984 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01225/1.6, allocations: 4.532 MB / 0.6255 GB, free: 2.336 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/1.6, allocations: 384 / 0.6255 GB, free: 2.336 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004487/1.604, allocations: 1.735 MB / 0.6272 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00764/1.612, allocations: 0.5926 MB / 0.6278 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02123/1.633, allocations: 6.903 MB / 0.6345 GB, free: 8.988 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003271/1.637, allocations: 2.072 MB / 0.6365 GB, free: 6.883 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/1.638, allocations: 143.4 kB / 0.6367 GB, free: 6.742 MB / 410.7 MB Notification: Performance of SimCode: time 1.122e-06/1.638, allocations: 0 / 0.6367 GB, free: 6.742 MB / 410.7 MB Notification: Performance of Templates: time 0.4955/2.133, allocations: 87.57 MB / 0.7222 GB, free: 52.97 MB / 410.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) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches