Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009675/0.0009675, allocations: 202.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008369/0.0008369, allocations: 99.23 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002015/0.0002016, allocations: 8 kB / 357.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1889, allocations: 51.47 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2902/0.4792, allocations: 111.1 MB / 0.5083 GB, free: 44.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.4794, allocations: 86.48 kB / 0.5084 GB, free: 44.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.116/0.5955, allocations: 53.23 MB / 0.5603 GB, free: 32.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.5955, allocations: 4 kB / 0.5603 GB, free: 32.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001344/0.5956, allocations: 73.53 kB / 0.5604 GB, free: 32.85 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004914/0.6006, allocations: 2.919 MB / 0.5633 GB, free: 31.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.6006, allocations: 7.844 kB / 0.5633 GB, free: 31.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007673/0.6014, allocations: 364 kB / 0.5636 GB, free: 30.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00333/0.6047, allocations: 1.92 MB / 0.5655 GB, free: 30.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-05/0.6048, allocations: 193.6 kB / 0.5657 GB, free: 30.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000284/0.6051, allocations: 251.7 kB / 0.5659 GB, free: 30.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004015/0.6091, allocations: 3.242 MB / 0.5691 GB, free: 29.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.79e-05/0.6092, allocations: 6.5 kB / 0.5691 GB, free: 29.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/0.6094, allocations: 103.3 kB / 0.5692 GB, free: 29.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.248e-05/0.6095, allocations: 120.1 kB / 0.5693 GB, free: 29.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003312/0.6129, allocations: 2.585 MB / 0.5718 GB, free: 28.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/0.6242, allocations: 10.49 MB / 0.5821 GB, free: 18.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.6257, allocations: 1.446 MB / 0.5835 GB, free: 16.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002702/0.626, allocations: 219.1 kB / 0.5837 GB, free: 16.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.6261, allocations: 47.56 kB / 0.5837 GB, free: 16.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 2.745e-06/0.6261, allocations: 0 / 0.5837 GB, free: 16.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.0122/0.6383, allocations: 7.086 MB / 0.5907 GB, free: 9.414 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.6383, allocations: 64.72 kB / 0.5907 GB, free: 9.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.6401, allocations: 1.562 MB / 0.5922 GB, free: 7.781 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-05/0.6402, allocations: 49.64 kB / 0.5923 GB, free: 7.727 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005471/0.6408, allocations: 1.26 MB / 0.5935 GB, free: 6.449 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.641, allocations: 461.5 kB / 0.594 GB, free: 5.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.436e-05/0.6411, allocations: 32 kB / 0.594 GB, free: 5.961 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.898e-05/0.6412, allocations: 369.9 kB / 0.5943 GB, free: 5.594 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009276/0.6421, allocations: 0.8081 MB / 0.5951 GB, free: 4.785 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.6432, allocations: 1.318 MB / 0.5964 GB, free: 3.246 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.6443, allocations: 1.029 MB / 0.5974 GB, free: 2.215 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.6443, allocations: 4 kB / 0.5974 GB, free: 2.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003075/0.6474, allocations: 2.544 MB / 0.5999 GB, free: 15.64 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.6474, allocations: 12 kB / 0.5999 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.6475, allocations: 19.95 kB / 0.5999 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005673/0.648, allocations: 243.5 kB / 0.6002 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.6496, allocations: 443.3 kB / 0.6006 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.6519, allocations: 3.037 MB / 0.6036 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.6531, allocations: 127.8 kB / 0.6037 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.6532, allocations: 75.98 kB / 0.6038 GB, free: 11.42 MB / 394.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001329/0.6546, allocations: 0.8233 MB / 0.6046 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.6548, allocations: 193.6 kB / 0.6048 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/0.6581, allocations: 2.148 MB / 0.6069 GB, free: 8.227 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.6581, allocations: 16 kB / 0.6069 GB, free: 8.211 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.6581, allocations: 0 / 0.6069 GB, free: 8.211 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.6581, allocations: 7.969 kB / 0.6069 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007436/0.6656, allocations: 4.883 MB / 0.6116 GB, free: 3.219 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.6656, allocations: 0 / 0.6116 GB, free: 3.219 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.6668, allocations: 299.5 kB / 0.6119 GB, free: 2.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005237/0.6673, allocations: 207.5 kB / 0.6121 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.6674, allocations: 27.98 kB / 0.6122 GB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.6697, allocations: 3.006 MB / 0.6151 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6697, allocations: 0 / 0.6151 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004449/0.6742, allocations: 3.452 MB / 0.6185 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008878/0.6751, allocations: 446.6 kB / 0.6189 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/0.6753, allocations: 24 kB / 0.6189 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.6764, allocations: 99.86 kB / 0.619 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.6766, allocations: 88.84 kB / 0.6191 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.964e-05/0.6767, allocations: 43.98 kB / 0.6191 GB, free: 11.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00168/0.6783, allocations: 1.189 MB / 0.6203 GB, free: 9.961 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6783, allocations: 3.938 kB / 0.6203 GB, free: 9.957 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001612/0.68, allocations: 0.5273 MB / 0.6208 GB, free: 9.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006535/0.6806, allocations: 415.4 kB / 0.6212 GB, free: 9.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003504/0.6841, allocations: 2.438 MB / 0.6236 GB, free: 6.508 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.6842, allocations: 0 / 0.6236 GB, free: 6.508 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.686, allocations: 1.386 MB / 0.6249 GB, free: 5.059 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/0.6878, allocations: 460.8 kB / 0.6254 GB, free: 4.617 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008238/0.6961, allocations: 5.876 MB / 0.6311 GB, free: 14.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001995/0.6981, allocations: 2.073 MB / 0.6331 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001479/0.6996, allocations: 0.516 MB / 0.6336 GB, free: 12.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004451/0.7, allocations: 143.4 kB / 0.6338 GB, free: 11.91 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.7, allocations: 3.938 kB / 0.6338 GB, free: 11.9 MB / 426.7 MB Notification: Performance of Templates: time 0.04313/0.7432, allocations: 27.24 MB / 0.6604 GB, free: 0.8633 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches