Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 91.5 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.294e-05/4.324e-05, allocations: 4 kB / 350.6 MB, free: 2.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 51.49 MB / 402 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3937/0.5016, allocations: 117.6 MB / 0.5075 GB, free: 4.434 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.502, allocations: 94.62 kB / 0.5076 GB, free: 4.383 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4365/0.9385, allocations: 79.92 MB / 0.5856 GB, free: 76.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.9385, allocations: 1.125 kB / 0.5856 GB, free: 76.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002058/0.9387, allocations: 80.75 kB / 0.5857 GB, free: 76.39 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.007155/0.9459, allocations: 3.23 MB / 0.5888 GB, free: 75.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.9459, allocations: 9.938 kB / 0.5889 GB, free: 75.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002513/0.9484, allocations: 0.602 MB / 0.5894 GB, free: 75.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007248/0.9557, allocations: 3.158 MB / 0.5925 GB, free: 74.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/0.956, allocations: 235.2 kB / 0.5927 GB, free: 74.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009205/0.9569, allocations: 311.6 kB / 0.593 GB, free: 74.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00638/0.9633, allocations: 4.037 MB / 0.597 GB, free: 73.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.697e-05/0.9634, allocations: 13.16 kB / 0.597 GB, free: 73.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002873/0.9637, allocations: 135.2 kB / 0.5971 GB, free: 73.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.9638, allocations: 143.3 kB / 0.5973 GB, free: 73.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004839/0.9686, allocations: 3.256 MB / 0.6004 GB, free: 73.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02394/0.9926, allocations: 13.97 MB / 0.6141 GB, free: 70.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005206/0.9979, allocations: 6.102 MB / 0.6201 GB, free: 65.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002309/1, allocations: 1.348 MB / 0.6214 GB, free: 65.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006152/1.006, allocations: 3.346 MB / 0.6246 GB, free: 64.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/1.006, allocations: 53.52 kB / 0.6247 GB, free: 63.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 4.399e-06/1.006, allocations: 0 / 0.6247 GB, free: 63.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.00738/1.014, allocations: 4.458 MB / 0.629 GB, free: 61.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/1.014, allocations: 96.33 kB / 0.6291 GB, free: 61.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002603/1.017, allocations: 1.679 MB / 0.6308 GB, free: 60.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001206/1.017, allocations: 47.33 kB / 0.6308 GB, free: 60.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007759/1.017, allocations: 1.467 MB / 0.6322 GB, free: 59.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003218/1.018, allocations: 479.9 kB / 0.6327 GB, free: 59.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.22e-05/1.018, allocations: 34.53 kB / 0.6327 GB, free: 59.31 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.5e-05/1.018, allocations: 375.8 kB / 0.6331 GB, free: 58.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/1.019, allocations: 0.7036 MB / 0.6338 GB, free: 58.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/1.02, allocations: 1.232 MB / 0.635 GB, free: 57.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/1.022, allocations: 0.9042 MB / 0.6359 GB, free: 57.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/1.022, allocations: 4.594 kB / 0.6359 GB, free: 57.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003774/1.026, allocations: 2.622 MB / 0.6384 GB, free: 56.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001049/1.027, allocations: 6.617 MB / 0.6449 GB, free: 49.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/1.027, allocations: 15.72 kB / 0.6449 GB, free: 49.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/1.028, allocations: 0.4956 MB / 0.6454 GB, free: 49.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/1.029, allocations: 361.4 kB / 0.6457 GB, free: 49.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005509/1.034, allocations: 7.031 MB / 0.6526 GB, free: 43.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/1.036, allocations: 101 kB / 0.6527 GB, free: 43.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/1.037, allocations: 77.61 kB / 0.6528 GB, free: 43.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.246e-06/1.037, allocations: 3.688 kB / 0.6528 GB, free: 43.67 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003243/1.04, allocations: 2.418 MB / 0.6551 GB, free: 42.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/1.04, allocations: 14.88 kB / 0.6552 GB, free: 42.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008974/1.041, allocations: 0.5 MB / 0.6556 GB, free: 42.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/1.042, allocations: 357.4 kB / 0.656 GB, free: 42.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/1.047, allocations: 7.035 MB / 0.6629 GB, free: 37.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/1.049, allocations: 85.22 kB / 0.6629 GB, free: 37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002115/1.049, allocations: 71.16 kB / 0.663 GB, free: 36.99 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (188): * Single equations (assignments): 184 * 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 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004411/1.05, allocations: 228.5 kB / 0.6632 GB, free: 36.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005888/1.05, allocations: 207 kB / 0.6634 GB, free: 36.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003756/1.054, allocations: 2.371 MB / 0.6657 GB, free: 35.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/1.054, allocations: 15.41 kB / 0.6658 GB, free: 35.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/1.054, allocations: 6.438 kB / 0.6658 GB, free: 35.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/1.054, allocations: 11.48 kB / 0.6658 GB, free: 35.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009988/1.064, allocations: 5.222 MB / 0.6709 GB, free: 33.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/1.064, allocations: 256 / 0.6709 GB, free: 33.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000795/1.065, allocations: 187.9 kB / 0.671 GB, free: 33.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/1.066, allocations: 0.6311 MB / 0.6717 GB, free: 32.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/1.067, allocations: 33.34 kB / 0.6717 GB, free: 32.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009544/1.076, allocations: 11.05 MB / 0.6825 GB, free: 24.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.076, allocations: 2.188 kB / 0.6825 GB, free: 24.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005455/1.082, allocations: 3.602 MB / 0.686 GB, free: 22.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/1.083, allocations: 470.4 kB / 0.6865 GB, free: 21.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007445/1.084, allocations: 33.31 kB / 0.6865 GB, free: 21.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.085, allocations: 83.25 kB / 0.6866 GB, free: 21.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00032/1.086, allocations: 119.9 kB / 0.6867 GB, free: 21.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.164e-05/1.086, allocations: 36.75 kB / 0.6867 GB, free: 21.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002371/1.088, allocations: 1.287 MB / 0.688 GB, free: 21.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.088, allocations: 3.938 kB / 0.688 GB, free: 21.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004907/1.093, allocations: 1.124 MB / 0.6891 GB, free: 21.06 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (91): * Single equations (assignments): 86 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008934/1.094, allocations: 0.5219 MB / 0.6896 GB, free: 20.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005682/1.1, allocations: 4.067 MB / 0.6936 GB, free: 18.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.1, allocations: 3.75 kB / 0.6936 GB, free: 18.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002234/1.102, allocations: 1.714 MB / 0.6952 GB, free: 17.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003316/1.106, allocations: 0.6071 MB / 0.6958 GB, free: 17.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/1.116, allocations: 4.649 MB / 0.7004 GB, free: 15.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002431/1.118, allocations: 2.379 MB / 0.7027 GB, free: 14.39 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003152/1.121, allocations: 0.8039 MB / 0.7035 GB, free: 14.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003016/1.121, allocations: 99.81 kB / 0.7036 GB, free: 14.31 MB / 442.7 MB Notification: Performance of SimCode: time 1.193e-06/1.122, allocations: 0 / 0.7036 GB, free: 14.31 MB / 442.7 MB Notification: Performance of Templates: time 0.3096/1.431, allocations: 44.43 MB / 0.747 GB, free: 83.5 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches