Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 174 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9421/0.9421, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 273.5 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/1.971e-05, allocations: 2.312 kB / 273.5 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01182/0.01184, allocations: 15.1 MB / 288.6 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1259/0.1378, allocations: 5.446 MB / 294.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002181/0.1399, allocations: 124.7 kB / 294.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.1421, allocations: 1.117 MB / 295.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.1447, allocations: 1.314 MB / 296.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001504/0.1462, allocations: 0.9107 MB / 297.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003506/0.1497, allocations: 3.803 MB / 301.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002242/0.152, allocations: 1.9 MB / 303.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003419/0.1554, allocations: 2.992 MB / 306.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002594/0.158, allocations: 1.786 MB / 308 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000835/0.1588, allocations: 467.1 kB / 308.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.1599, allocations: 0.6938 MB / 309.2 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005884/0.1605, allocations: 1.142 MB / 310.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.1618, allocations: 1.353 MB / 311.7 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002918/0.1647, allocations: 3.299 MB / 314.9 MB, free: 6.125 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1647, allocations: 0 / 314.9 MB, free: 6.125 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1647, allocations: 0 / 314.9 MB, free: 6.125 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001009/0.1648, allocations: 4 kB / 315 MB, free: 6.121 MB / 266.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.004479/0.1693, allocations: 4.065 MB / 319 MB, free: 2.219 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.1693, allocations: 8.031 kB / 319 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001776/0.1711, allocations: 0.8488 MB / 319.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.1729, allocations: 1.492 MB / 321.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.173, allocations: 237.6 kB / 321.6 MB, free: 15.63 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000312/0.1733, allocations: 310.8 kB / 321.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002614/0.176, allocations: 2.3 MB / 324.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.561e-05/0.176, allocations: 1.031 kB / 324.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/0.1762, allocations: 133.3 kB / 324.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/0.1763, allocations: 146.2 kB / 324.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.1779, allocations: 0.9487 MB / 325.4 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009355/0.1873, allocations: 8.608 MB / 334 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.1887, allocations: 1.091 MB / 335.1 MB, free: 2.254 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005601/0.1893, allocations: 400.2 kB / 335.5 MB, free: 1.879 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001754/0.191, allocations: 1.343 MB / 336.9 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.1911, allocations: 47.55 kB / 336.9 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 2.374e-06/0.1911, allocations: 0 / 336.9 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.005041/0.1961, allocations: 3.16 MB / 340.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.1962, allocations: 68.66 kB / 340.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009368/0.1971, allocations: 1.258 MB / 341.4 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.031e-05/0.1971, allocations: 49.7 kB / 341.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005633/0.1977, allocations: 1.329 MB / 342.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002701/0.198, allocations: 0.5014 MB / 343.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/0.1983, allocations: 322.7 kB / 343.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.781e-05/0.1984, allocations: 306.6 kB / 343.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.1987, allocations: 206.7 kB / 344.1 MB, free: 9.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006202/0.1993, allocations: 0.8263 MB / 344.9 MB, free: 8.609 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.2004, allocations: 1.205 MB / 346.1 MB, free: 7.176 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.2004, allocations: 4 kB / 346.1 MB, free: 7.172 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001146/0.2015, allocations: 1.134 MB / 347.3 MB, free: 6.023 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.2015, allocations: 12 kB / 347.3 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.2015, allocations: 20 kB / 347.3 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001662/0.2017, allocations: 90.95 kB / 347.4 MB, free: 5.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009368/0.2027, allocations: 481.7 kB / 347.8 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005702/0.2032, allocations: 1.199 MB / 349 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004713/0.2037, allocations: 67.94 kB / 349.1 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.297e-05/0.2038, allocations: 64 kB / 349.2 MB, free: 4.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (231): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004071/0.2042, allocations: 244 kB / 349.4 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.2043, allocations: 155.8 kB / 349.6 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008694/0.2052, allocations: 0.7957 MB / 350.4 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.2052, allocations: 16 kB / 350.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2052, allocations: 0 / 350.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.2052, allocations: 7.969 kB / 350.4 MB, free: 2.781 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/0.2078, allocations: 2.229 MB / 352.6 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.2078, allocations: 0 / 352.6 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007014/0.2085, allocations: 303.9 kB / 352.9 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001302/0.2087, allocations: 70.39 kB / 353 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.288e-05/0.2087, allocations: 24 kB / 353 MB, free: 320 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004821/0.2092, allocations: 1.171 MB / 354.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2092, allocations: 0 / 354.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.2103, allocations: 1.151 MB / 355.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.2106, allocations: 222 kB / 355.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.2107, allocations: 24 kB / 355.6 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.211, allocations: 44.14 kB / 355.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.2111, allocations: 93.06 kB / 355.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.199e-05/0.2112, allocations: 28 kB / 355.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004616/0.2116, allocations: 0.6217 MB / 356.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2116, allocations: 0 / 356.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00086/0.2125, allocations: 0.5156 MB / 356.9 MB, free: 12.41 MB / 314.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 (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002159/0.2127, allocations: 155.1 kB / 357 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009702/0.2137, allocations: 0.9478 MB / 358 MB, free: 11.31 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.898e-05/0.2137, allocations: 25.81 kB / 358 MB, free: 11.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004467/0.2142, allocations: 0.5095 MB / 358.5 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009883/0.2152, allocations: 486 kB / 359 MB, free: 10.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005513/0.2207, allocations: 4.792 MB / 363.8 MB, free: 5.465 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/0.2212, allocations: 0.6297 MB / 364.4 MB, free: 4.809 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006459/0.2218, allocations: 284.7 kB / 364.7 MB, free: 4.527 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007485/0.2225, allocations: 491.1 kB / 365.1 MB, free: 4.043 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2226, allocations: 0 / 365.1 MB, free: 4.043 MB / 314.7 MB Notification: Performance of Templates: time 0.0324/0.255, allocations: 25.37 MB / 390.5 MB, free: 11.13 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1951199658215046]