Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008591/0.0008589, allocations: 96.25 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 11.94 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2539, allocations: 50.38 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1282/0.3822, allocations: 110.5 MB / 0.5 GB, free: 1.969 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/0.3825, allocations: 91.95 kB / 0.5 GB, free: 1.879 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3296/0.7121, allocations: 55.17 MB / 0.5539 GB, free: 60.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.7122, allocations: 0 / 0.5539 GB, free: 60.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003369/0.7125, allocations: 75.86 kB / 0.554 GB, free: 60.65 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.007848/0.7204, allocations: 2.985 MB / 0.5569 GB, free: 57.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.7204, allocations: 8.031 kB / 0.5569 GB, free: 57.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.7221, allocations: 360.7 kB / 0.5573 GB, free: 57.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005457/0.7275, allocations: 1.948 MB / 0.5592 GB, free: 55.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.7278, allocations: 193 kB / 0.5593 GB, free: 55.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009504/0.7287, allocations: 243.9 kB / 0.5596 GB, free: 54.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008699/0.7374, allocations: 3.385 MB / 0.5629 GB, free: 51.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.7376, allocations: 0 / 0.5629 GB, free: 51.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000655/0.7383, allocations: 112 kB / 0.563 GB, free: 51.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/0.7384, allocations: 108.8 kB / 0.5631 GB, free: 51.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005672/0.7441, allocations: 2.779 MB / 0.5658 GB, free: 48.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01712/0.7613, allocations: 10.9 MB / 0.5765 GB, free: 37.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0024/0.7637, allocations: 2.485 MB / 0.5789 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002905/0.764, allocations: 134.4 kB / 0.579 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.7641, allocations: 47.88 kB / 0.5791 GB, free: 34.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.789e-06/0.7641, allocations: 4 kB / 0.5791 GB, free: 34.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01315/0.7772, allocations: 7.305 MB / 0.5862 GB, free: 26.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.7773, allocations: 106.4 kB / 0.5863 GB, free: 26.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00271/0.78, allocations: 1.587 MB / 0.5878 GB, free: 25.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.7802, allocations: 53.64 kB / 0.5879 GB, free: 24.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005978/0.7808, allocations: 1.214 MB / 0.5891 GB, free: 23.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.7811, allocations: 0.4967 MB / 0.5896 GB, free: 23.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.846e-05/0.7811, allocations: 36 kB / 0.5896 GB, free: 23.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.62e-05/0.7812, allocations: 373.9 kB / 0.59 GB, free: 22.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.7823, allocations: 0.855 MB / 0.5908 GB, free: 22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.7835, allocations: 1.31 MB / 0.5921 GB, free: 20.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.7847, allocations: 1.033 MB / 0.5931 GB, free: 19.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.7847, allocations: 8 kB / 0.5931 GB, free: 19.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003849/0.7885, allocations: 2.872 MB / 0.5959 GB, free: 16.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009715/0.7895, allocations: 5.584 MB / 0.6013 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.7896, allocations: 16 kB / 0.6014 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.7909, allocations: 0.6669 MB / 0.602 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.7921, allocations: 375.4 kB / 0.6024 GB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007129/0.7992, allocations: 8.5 MB / 0.6107 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.801, allocations: 111.8 kB / 0.6108 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002459/0.8013, allocations: 72 kB / 0.6108 GB, free: 352 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.8013, allocations: 7.953 kB / 0.6109 GB, free: 344 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004413/0.8057, allocations: 2.646 MB / 0.6134 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/0.8058, allocations: 16 kB / 0.6135 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.8072, allocations: 0.6674 MB / 0.6141 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.8085, allocations: 367.4 kB / 0.6145 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009012/0.8175, allocations: 8.51 MB / 0.6228 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.8195, allocations: 103.8 kB / 0.6229 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/0.8199, allocations: 72 kB / 0.6229 GB, free: 3.539 MB / 394.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.001978/0.8218, allocations: 0.9261 MB / 0.6238 GB, free: 2.602 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005614/0.8224, allocations: 205.5 kB / 0.624 GB, free: 2.398 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005074/0.8275, allocations: 2.625 MB / 0.6266 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.8275, allocations: 16 kB / 0.6266 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.8276, allocations: 4 kB / 0.6266 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.8276, allocations: 7.969 kB / 0.6266 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.8385, allocations: 5.41 MB / 0.6319 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.8385, allocations: 4.391 kB / 0.6319 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009664/0.8395, allocations: 239.6 kB / 0.6321 GB, free: 9.973 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001686/0.8412, allocations: 0.6902 MB / 0.6328 GB, free: 9.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.8413, allocations: 35.98 kB / 0.6328 GB, free: 9.234 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/0.8518, allocations: 10.02 MB / 0.6426 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.8518, allocations: 4.031 kB / 0.6426 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005902/0.8577, allocations: 3.959 MB / 0.6465 GB, free: 10.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/0.8592, allocations: 470.5 kB / 0.6469 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005699/0.8598, allocations: 35.98 kB / 0.647 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.8611, allocations: 99.89 kB / 0.6471 GB, free: 9.988 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.8614, allocations: 121 kB / 0.6472 GB, free: 9.867 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.8616, allocations: 43.98 kB / 0.6472 GB, free: 9.824 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002442/0.864, allocations: 1.221 MB / 0.6484 GB, free: 8.613 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.864, allocations: 0 / 0.6484 GB, free: 8.613 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005286/0.8693, allocations: 1.051 MB / 0.6495 GB, free: 7.562 MB / 426.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.0008851/0.8702, allocations: 422.9 kB / 0.6499 GB, free: 7.152 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008309/0.8785, allocations: 4.529 MB / 0.6543 GB, free: 2.508 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/0.8786, allocations: 8.312 kB / 0.6543 GB, free: 2.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002834/0.8815, allocations: 1.755 MB / 0.656 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/0.8845, allocations: 0.5723 MB / 0.6566 GB, free: 128 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2129/1.097, allocations: 6.483 MB / 0.6629 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/1.099, allocations: 2.145 MB / 0.665 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001908/1.101, allocations: 0.5948 MB / 0.6656 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003649/1.101, allocations: 137.3 kB / 0.6657 GB, free: 100.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.533e-06/1.101, allocations: 0 / 0.6657 GB, free: 100.7 MB / 426.7 MB Notification: Performance of Templates: time 0.05911/1.16, allocations: 41.56 MB / 0.7063 GB, free: 88.16 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches