Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 198.2 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.164/1.164, allocations: 227.2 MB / 245 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008233/0.0008232, allocations: 112.7 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001931/0.0001932, allocations: 8 kB / 357.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2066, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3122/0.5189, allocations: 117.8 MB / 0.5149 GB, free: 46.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.5191, allocations: 105.2 kB / 0.515 GB, free: 46.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.158/0.6772, allocations: 77.94 MB / 0.5911 GB, free: 9.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.6772, allocations: 0 / 0.5911 GB, free: 9.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002315/0.6775, allocations: 87.81 kB / 0.5912 GB, free: 9.414 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008518/0.686, allocations: 3.524 MB / 0.5947 GB, free: 5.816 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.686, allocations: 12.03 kB / 0.5947 GB, free: 5.805 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002866/0.6889, allocations: 0.5929 MB / 0.5952 GB, free: 5.207 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008712/0.6976, allocations: 3.17 MB / 0.5983 GB, free: 1.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002518/0.6979, allocations: 234.3 kB / 0.5986 GB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/0.699, allocations: 311.9 kB / 0.5989 GB, free: 1.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009118/0.7081, allocations: 3.984 MB / 0.6028 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.7083, allocations: 15.83 kB / 0.6028 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005678/0.7089, allocations: 132 kB / 0.6029 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/0.709, allocations: 138.2 kB / 0.603 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006385/0.7154, allocations: 3.171 MB / 0.6061 GB, free: 9.859 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02095/0.7364, allocations: 13.64 MB / 0.6194 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004046/0.7405, allocations: 4.277 MB / 0.6236 GB, free: 6.891 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004449/0.745, allocations: 2.913 MB / 0.6265 GB, free: 3.852 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.745, allocations: 51.55 kB / 0.6265 GB, free: 3.793 MB / 410.7 MB Notification: Performance of pre-optimization done (n=113): time 3.777e-06/0.745, allocations: 0 / 0.6265 GB, free: 3.793 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.01277/0.7578, allocations: 6.505 MB / 0.6329 GB, free: 13.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.7579, allocations: 68.72 kB / 0.6329 GB, free: 13.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002267/0.7601, allocations: 1.67 MB / 0.6346 GB, free: 11.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.014e-05/0.7602, allocations: 53.7 kB / 0.6346 GB, free: 11.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009505/0.7612, allocations: 1.509 MB / 0.6361 GB, free: 9.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003591/0.7616, allocations: 0.4929 MB / 0.6366 GB, free: 9.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.596e-05/0.7616, allocations: 36 kB / 0.6366 GB, free: 9.285 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.7618, allocations: 381.9 kB / 0.637 GB, free: 8.906 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.7629, allocations: 0.7809 MB / 0.6377 GB, free: 8.125 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.7644, allocations: 1.356 MB / 0.6391 GB, free: 6.516 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.7659, allocations: 1.025 MB / 0.6401 GB, free: 5.488 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.7659, allocations: 4 kB / 0.6401 GB, free: 5.484 MB / 426.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00359/0.7695, allocations: 2.485 MB / 0.6425 GB, free: 2.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.7696, allocations: 12.09 kB / 0.6425 GB, free: 2.969 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.7696, allocations: 28 kB / 0.6425 GB, free: 2.941 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003327/0.7699, allocations: 122.5 kB / 0.6426 GB, free: 2.812 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.7717, allocations: 487.2 kB / 0.6431 GB, free: 2.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009723/0.7727, allocations: 1.311 MB / 0.6444 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.774, allocations: 120 kB / 0.6445 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.7742, allocations: 83.98 kB / 0.6446 GB, free: 0.6914 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (233): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001712/0.7759, allocations: 0.9812 MB / 0.6455 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000275/0.7762, allocations: 201.5 kB / 0.6457 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003228/0.7794, allocations: 2.017 MB / 0.6477 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.7794, allocations: 19.95 kB / 0.6477 GB, free: 13.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.7794, allocations: 0 / 0.6477 GB, free: 13.44 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.7794, allocations: 7.969 kB / 0.6477 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008005/0.7875, allocations: 5.102 MB / 0.6527 GB, free: 8.227 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.7875, allocations: 3.953 kB / 0.6527 GB, free: 8.223 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.7889, allocations: 319.6 kB / 0.653 GB, free: 7.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002764/0.7891, allocations: 102.7 kB / 0.6531 GB, free: 7.801 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.762e-05/0.7892, allocations: 31.98 kB / 0.6531 GB, free: 7.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.7903, allocations: 1.284 MB / 0.6544 GB, free: 6.355 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.7903, allocations: 4 kB / 0.6544 GB, free: 6.352 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004387/0.7947, allocations: 3.287 MB / 0.6576 GB, free: 2.938 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008242/0.7955, allocations: 474.4 kB / 0.6581 GB, free: 2.453 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.7958, allocations: 28.06 kB / 0.6581 GB, free: 2.426 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009639/0.7968, allocations: 95.83 kB / 0.6582 GB, free: 2.332 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.7969, allocations: 85.19 kB / 0.6583 GB, free: 2.246 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.624e-05/0.797, allocations: 40 kB / 0.6583 GB, free: 2.207 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00172/0.7987, allocations: 1.27 MB / 0.6595 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7988, allocations: 11.94 kB / 0.6596 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001683/0.8004, allocations: 0.5937 MB / 0.6601 GB, free: 316 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006536/0.8011, allocations: 482.4 kB / 0.6606 GB, free: 15.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002982/0.8041, allocations: 2.235 MB / 0.6628 GB, free: 13.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.8041, allocations: 0 / 0.6628 GB, free: 13.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001473/0.8056, allocations: 1.199 MB / 0.6639 GB, free: 12.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.8073, allocations: 0.4919 MB / 0.6644 GB, free: 11.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008815/0.8162, allocations: 6.756 MB / 0.671 GB, free: 4.984 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/0.8182, allocations: 2.33 MB / 0.6733 GB, free: 2.625 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001532/0.8197, allocations: 0.5173 MB / 0.6738 GB, free: 2.105 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004308/0.8201, allocations: 155.4 kB / 0.674 GB, free: 1.953 MB / 458.7 MB Notification: Performance of SimCode: time 3.51e-07/0.8201, allocations: 4 kB / 0.674 GB, free: 1.949 MB / 458.7 MB Notification: Performance of Templates: time 0.2176/1.038, allocations: 28.42 MB / 0.7017 GB, free: 101.2 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches