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.001303/0.001303, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.656/1.656, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008837/0.0008841, allocations: 99.16 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.423e-05/1.42e-05, allocations: 4 kB / 343.7 MB, free: 8.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1135, allocations: 51.47 MB / 395.2 MB, free: 4.723 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3783/0.4918, allocations: 117.1 MB / 0.5003 GB, free: 8.633 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.4921, allocations: 93.14 kB / 0.5004 GB, free: 8.586 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4802/0.9723, allocations: 76.92 MB / 0.5755 GB, free: 72.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.9724, allocations: 0 / 0.5755 GB, free: 72.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004201/0.9728, allocations: 87.44 kB / 0.5756 GB, free: 72.66 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009978/0.9828, allocations: 3.168 MB / 0.5787 GB, free: 72.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.9829, allocations: 10.03 kB / 0.5787 GB, free: 72.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003679/0.9866, allocations: 0.5936 MB / 0.5793 GB, free: 71.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008673/0.9953, allocations: 3.124 MB / 0.5823 GB, free: 71.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.9954, allocations: 104.8 kB / 0.5824 GB, free: 71.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006862/0.9961, allocations: 190.3 kB / 0.5826 GB, free: 71.44 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005314/1.001, allocations: 2.866 MB / 0.5854 GB, free: 71.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005994/1.007, allocations: 3.471 MB / 0.5888 GB, free: 71.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.607e-05/1.008, allocations: 2.859 kB / 0.5888 GB, free: 71.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/1.008, allocations: 3.25 kB / 0.5888 GB, free: 71.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/1.008, allocations: 146.9 kB / 0.5889 GB, free: 71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01809/1.026, allocations: 13.01 MB / 0.6016 GB, free: 67.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003272/1.029, allocations: 4.183 MB / 0.6057 GB, free: 64.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/1.031, allocations: 0.974 MB / 0.6067 GB, free: 64.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003914/1.035, allocations: 2.809 MB / 0.6094 GB, free: 63.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/1.035, allocations: 49.31 kB / 0.6095 GB, free: 63.51 MB / 442.7 MB Notification: Performance of pre-optimization done (n=111): time 2.956e-06/1.035, allocations: 0 / 0.6095 GB, free: 63.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=147): time 0.01123/1.046, allocations: 5.49 MB / 0.6148 GB, free: 62.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/1.046, allocations: 68.75 kB / 0.6149 GB, free: 62.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002373/1.048, allocations: 1.376 MB / 0.6162 GB, free: 62.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.333e-05/1.048, allocations: 25.7 kB / 0.6163 GB, free: 62.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008978/1.049, allocations: 1.511 MB / 0.6177 GB, free: 61.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003856/1.05, allocations: 492.5 kB / 0.6182 GB, free: 61.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-05/1.05, allocations: 0 / 0.6182 GB, free: 61.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/1.05, allocations: 383.7 kB / 0.6186 GB, free: 60.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/1.051, allocations: 0.7176 MB / 0.6193 GB, free: 60.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/1.052, allocations: 1.295 MB / 0.6205 GB, free: 60.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002034/1.055, allocations: 1.093 MB / 0.6216 GB, free: 60.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/1.055, allocations: 8.625 kB / 0.6216 GB, free: 60.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004407/1.059, allocations: 2.362 MB / 0.6239 GB, free: 59.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/1.059, allocations: 13.75 kB / 0.6239 GB, free: 59.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.295e-05/1.059, allocations: 17.88 kB / 0.624 GB, free: 59.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003542/1.059, allocations: 122.8 kB / 0.6241 GB, free: 59.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/1.061, allocations: 491 kB / 0.6245 GB, free: 59.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008515/1.062, allocations: 1.258 MB / 0.6258 GB, free: 58.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/1.064, allocations: 78.45 kB / 0.6258 GB, free: 58.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/1.064, allocations: 81.31 kB / 0.6259 GB, free: 58.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 232 * 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.0003038/1.065, allocations: 169.1 kB / 0.6261 GB, free: 58.22 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/1.065, allocations: 187.1 kB / 0.6263 GB, free: 58.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004168/1.069, allocations: 1.955 MB / 0.6282 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/1.069, allocations: 17.41 kB / 0.6282 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.069, allocations: 4.5 kB / 0.6282 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.008e-05/1.069, allocations: 7.766 kB / 0.6282 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/1.079, allocations: 4.634 MB / 0.6327 GB, free: 55.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.079, allocations: 4.188 kB / 0.6327 GB, free: 55.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.081, allocations: 314.9 kB / 0.633 GB, free: 55.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003133/1.081, allocations: 98.86 kB / 0.6331 GB, free: 55.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.893e-05/1.081, allocations: 8.312 kB / 0.6331 GB, free: 55.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000854/1.082, allocations: 1.227 MB / 0.6343 GB, free: 54.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/1.082, allocations: 7.781 kB / 0.6343 GB, free: 54.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006482/1.089, allocations: 3.229 MB / 0.6375 GB, free: 52.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/1.09, allocations: 450 kB / 0.6379 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/1.09, allocations: 4.922 kB / 0.6379 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/1.091, allocations: 65.59 kB / 0.638 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/1.092, allocations: 90.12 kB / 0.6381 GB, free: 52.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.39e-05/1.092, allocations: 41.58 kB / 0.6381 GB, free: 52.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00181/1.094, allocations: 1.028 MB / 0.6391 GB, free: 51.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.094, allocations: 0 / 0.6391 GB, free: 51.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002368/1.096, allocations: 0.5145 MB / 0.6396 GB, free: 51.7 MB / 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * 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.000824/1.097, allocations: 470.8 kB / 0.6401 GB, free: 51.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003534/1.1, allocations: 2.091 MB / 0.6421 GB, free: 50.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.1, allocations: 0 / 0.6421 GB, free: 50.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/1.102, allocations: 1.145 MB / 0.6432 GB, free: 49.97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002832/1.105, allocations: 401 kB / 0.6436 GB, free: 49.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/1.115, allocations: 4.376 MB / 0.6479 GB, free: 48.03 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001923/1.117, allocations: 2.329 MB / 0.6502 GB, free: 46.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002022/1.119, allocations: 0.5175 MB / 0.6507 GB, free: 46.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004136/1.119, allocations: 147.8 kB / 0.6508 GB, free: 46.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.212e-06/1.12, allocations: 0 / 0.6508 GB, free: 46.91 MB / 442.7 MB Notification: Performance of Templates: time 0.04134/1.161, allocations: 22.3 MB / 0.6726 GB, free: 45.63 MB / 442.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