Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001467/0.001467, allocations: 180.7 kB / 17.02 MB, free: 5.117 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007984/0.0007984, allocations: 96.09 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000278/0.0002777, allocations: 8 kB / 328.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2372, allocations: 47.56 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.3593, allocations: 115.8 MB / 491.6 MB, free: 12.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.3595, allocations: 95.95 kB / 491.7 MB, free: 12.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3342/0.6938, allocations: 74.98 MB / 0.5534 GB, free: 64.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.6938, allocations: 0 / 0.5534 GB, free: 64.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000201/0.694, allocations: 99.8 kB / 0.5535 GB, free: 64.07 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.007879/0.7019, allocations: 3.477 MB / 0.5569 GB, free: 60.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.702, allocations: 11.98 kB / 0.5569 GB, free: 60.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002713/0.7047, allocations: 0.5968 MB / 0.5575 GB, free: 59.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007032/0.7117, allocations: 3.13 MB / 0.5605 GB, free: 56.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.7119, allocations: 246.3 kB / 0.5608 GB, free: 56.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004431/0.7123, allocations: 315.8 kB / 0.5611 GB, free: 56.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005437/0.7178, allocations: 3.975 MB / 0.565 GB, free: 52.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-05/0.7179, allocations: 8 kB / 0.565 GB, free: 52.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002585/0.7181, allocations: 132 kB / 0.5651 GB, free: 51.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.7182, allocations: 154.2 kB / 0.5652 GB, free: 51.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004515/0.7228, allocations: 3.163 MB / 0.5683 GB, free: 48.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01672/0.7395, allocations: 13.45 MB / 0.5815 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003331/0.7429, allocations: 3.981 MB / 0.5854 GB, free: 30.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004788/0.7477, allocations: 2.716 MB / 0.588 GB, free: 27.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.7478, allocations: 43.56 kB / 0.588 GB, free: 27.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=113): time 3.647e-06/0.7478, allocations: 0 / 0.588 GB, free: 27.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01222/0.76, allocations: 6.494 MB / 0.5944 GB, free: 20.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.7601, allocations: 68.72 kB / 0.5945 GB, free: 20.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002241/0.7624, allocations: 1.649 MB / 0.5961 GB, free: 18.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.962e-05/0.7625, allocations: 49.7 kB / 0.5961 GB, free: 18.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000691/0.7632, allocations: 1.509 MB / 0.5976 GB, free: 17.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/0.7634, allocations: 0.4967 MB / 0.5981 GB, free: 16.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-05/0.7635, allocations: 43.94 kB / 0.5981 GB, free: 16.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/0.7636, allocations: 381.9 kB / 0.5985 GB, free: 16.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009897/0.7646, allocations: 0.773 MB / 0.5992 GB, free: 15.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.7658, allocations: 1.36 MB / 0.6006 GB, free: 14.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.767, allocations: 1.017 MB / 0.6016 GB, free: 13.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.7671, allocations: 4 kB / 0.6016 GB, free: 13.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.003394/0.7705, allocations: 2.493 MB / 0.604 GB, free: 10.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.7705, allocations: 12 kB / 0.604 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.7705, allocations: 16 kB / 0.604 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003323/0.7709, allocations: 114.9 kB / 0.6041 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/0.7726, allocations: 0.4914 MB / 0.6046 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007674/0.7733, allocations: 1.319 MB / 0.6059 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.7753, allocations: 115.8 kB / 0.606 GB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.7754, allocations: 80 kB / 0.6061 GB, free: 8.273 MB / 378.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.002006/0.7774, allocations: 0.9931 MB / 0.6071 GB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003983/0.7778, allocations: 201.5 kB / 0.6072 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002912/0.7807, allocations: 2.009 MB / 0.6092 GB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.7808, allocations: 16 kB / 0.6092 GB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7808, allocations: 0 / 0.6092 GB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.7808, allocations: 15.95 kB / 0.6092 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007257/0.7881, allocations: 5.101 MB / 0.6142 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.7881, allocations: 256 / 0.6142 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.7897, allocations: 335.6 kB / 0.6145 GB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003205/0.79, allocations: 98.45 kB / 0.6146 GB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.432e-05/0.7901, allocations: 28 kB / 0.6147 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.7911, allocations: 1.276 MB / 0.6159 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.7911, allocations: 4 kB / 0.6159 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004962/0.7961, allocations: 3.294 MB / 0.6191 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.7976, allocations: 478.3 kB / 0.6196 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002623/0.7979, allocations: 20 kB / 0.6196 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.799, allocations: 87.91 kB / 0.6197 GB, free: 9.914 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.7992, allocations: 93.19 kB / 0.6198 GB, free: 9.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.232e-05/0.7993, allocations: 43.98 kB / 0.6198 GB, free: 9.777 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00234/0.8016, allocations: 1.266 MB / 0.6211 GB, free: 8.488 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8016, allocations: 0 / 0.6211 GB, free: 8.488 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00223/0.8039, allocations: 0.5897 MB / 0.6216 GB, free: 7.898 MB / 394.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.0007997/0.8047, allocations: 460.2 kB / 0.6221 GB, free: 7.449 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003939/0.8086, allocations: 2.232 MB / 0.6242 GB, free: 5.164 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.8086, allocations: 0 / 0.6242 GB, free: 5.164 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.8104, allocations: 1.209 MB / 0.6254 GB, free: 3.898 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/0.8132, allocations: 487.8 kB / 0.6259 GB, free: 3.418 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.826, allocations: 6.75 MB / 0.6325 GB, free: 12.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002491/0.8286, allocations: 2.326 MB / 0.6348 GB, free: 10.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002146/0.8307, allocations: 0.5094 MB / 0.6353 GB, free: 9.734 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004484/0.8312, allocations: 155.3 kB / 0.6354 GB, free: 9.582 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8312, allocations: 0 / 0.6354 GB, free: 9.582 MB / 410.7 MB Notification: Performance of Templates: time 0.256/1.087, allocations: 27.94 MB / 0.6627 GB, free: 91.39 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches