Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.0009882/0.000988, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.306/1.306, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.000816/0.0008161, allocations: 89.42 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003245/0.0003245, allocations: 12 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2355, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.3611, allocations: 116.1 MB / 491.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.3614, allocations: 95.89 kB / 491.9 MB, free: 12.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3133/0.6748, allocations: 74.86 MB / 0.5535 GB, free: 63.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6748, allocations: 0 / 0.5535 GB, free: 63.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003059/0.6751, allocations: 91.88 kB / 0.5536 GB, free: 63.8 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.0102/0.6853, allocations: 3.442 MB / 0.5569 GB, free: 60.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.6854, allocations: 11.98 kB / 0.557 GB, free: 60.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00314/0.6885, allocations: 0.5861 MB / 0.5575 GB, free: 59.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006218/0.6948, allocations: 2.534 MB / 0.56 GB, free: 57.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/0.6951, allocations: 238.7 kB / 0.5602 GB, free: 56.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/0.6963, allocations: 308.3 kB / 0.5605 GB, free: 56.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0106/0.707, allocations: 4.015 MB / 0.5644 GB, free: 52.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001294/0.7071, allocations: 7.844 kB / 0.5645 GB, free: 52.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006743/0.7078, allocations: 140 kB / 0.5646 GB, free: 52.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001321/0.708, allocations: 146.2 kB / 0.5647 GB, free: 52.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006306/0.7143, allocations: 3.167 MB / 0.5678 GB, free: 48.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02186/0.7362, allocations: 13.45 MB / 0.581 GB, free: 35.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003388/0.7396, allocations: 3.996 MB / 0.5849 GB, free: 30.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.7411, allocations: 1.005 MB / 0.5858 GB, free: 29.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004469/0.7456, allocations: 2.677 MB / 0.5885 GB, free: 26.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.7457, allocations: 47.56 kB / 0.5885 GB, free: 26.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 3.767e-06/0.7457, allocations: 0 / 0.5885 GB, free: 26.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=142): time 0.01237/0.7581, allocations: 6.389 MB / 0.5947 GB, free: 20.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.7581, allocations: 68.72 kB / 0.5948 GB, free: 20.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003092/0.7612, allocations: 1.874 MB / 0.5966 GB, free: 18.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.7614, allocations: 49.7 kB / 0.5967 GB, free: 18.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000713/0.7621, allocations: 1.505 MB / 0.5981 GB, free: 16.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003367/0.7625, allocations: 496.9 kB / 0.5986 GB, free: 16.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.7626, allocations: 40 kB / 0.5987 GB, free: 16.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.401e-05/0.7627, allocations: 377.8 kB / 0.599 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.7638, allocations: 0.7652 MB / 0.5998 GB, free: 14.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.7651, allocations: 1.358 MB / 0.6011 GB, free: 13.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002572/0.7677, allocations: 2.287 MB / 0.6033 GB, free: 10.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.78e-05/0.7677, allocations: 4 kB / 0.6033 GB, free: 10.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.003599/0.7713, allocations: 2.458 MB / 0.6057 GB, free: 8.316 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.7714, allocations: 12 kB / 0.6057 GB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.53e-05/0.7714, allocations: 23.94 kB / 0.6058 GB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003348/0.7717, allocations: 114.9 kB / 0.6059 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/0.7734, allocations: 495.2 kB / 0.6063 GB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000782/0.7742, allocations: 1.311 MB / 0.6076 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/0.7758, allocations: 115.8 kB / 0.6077 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.7759, allocations: 83.98 kB / 0.6078 GB, free: 6.031 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (230): * Single equations (assignments): 227 * 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.001719/0.7776, allocations: 0.982 MB / 0.6088 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004586/0.7781, allocations: 209.4 kB / 0.609 GB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.7812, allocations: 1.95 MB / 0.6109 GB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.7813, allocations: 12 kB / 0.6109 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.7813, allocations: 4 kB / 0.6109 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.7813, allocations: 11.97 kB / 0.6109 GB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009686/0.791, allocations: 5 MB / 0.6158 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.7911, allocations: 4.25 kB / 0.6158 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.7925, allocations: 319.5 kB / 0.6161 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003091/0.7928, allocations: 90.53 kB / 0.6162 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/0.7929, allocations: 35.92 kB / 0.6162 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009901/0.7939, allocations: 1.276 MB / 0.6175 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.794, allocations: 0 / 0.6175 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005018/0.799, allocations: 3.085 MB / 0.6205 GB, free: 8.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.8003, allocations: 466.4 kB / 0.6209 GB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005518/0.8009, allocations: 31.98 kB / 0.621 GB, free: 8.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.8022, allocations: 83.97 kB / 0.621 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.8024, allocations: 97 kB / 0.6211 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.637e-05/0.8025, allocations: 43.92 kB / 0.6212 GB, free: 8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00272/0.8053, allocations: 1.266 MB / 0.6224 GB, free: 6.711 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8053, allocations: 0 / 0.6224 GB, free: 6.711 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002662/0.8079, allocations: 0.582 MB / 0.623 GB, free: 6.129 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 (141): * Single equations (assignments): 138 * 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.0009132/0.8089, allocations: 459.5 kB / 0.6234 GB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003946/0.8128, allocations: 2.204 MB / 0.6256 GB, free: 3.418 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.8129, allocations: 4.438 kB / 0.6256 GB, free: 3.414 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.8147, allocations: 1.174 MB / 0.6267 GB, free: 2.188 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003818/0.8186, allocations: 498 kB / 0.6272 GB, free: 1.699 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.8304, allocations: 6.763 MB / 0.6338 GB, free: 10.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002081/0.8325, allocations: 2.216 MB / 0.636 GB, free: 8.625 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008765/0.8334, allocations: 171.4 kB / 0.6361 GB, free: 8.457 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/0.8334, allocations: 0 / 0.6361 GB, free: 8.457 MB / 410.7 MB Notification: Performance of Templates: time 0.2737/1.107, allocations: 86.86 MB / 0.7209 GB, free: 51.16 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches