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.001303/0.001303, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009683/0.0009683, allocations: 172.6 kB / 24.92 MB, free: 8.727 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.8943/0.8943, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.222e-06/1.222e-06, allocations: 0 / 273.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.415e-05/1.537e-05, allocations: 2.312 kB / 273.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0118/0.01181, allocations: 15.07 MB / 288.5 MB, free: 2.148 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1162/0.128, allocations: 5.439 MB / 294 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001903/0.1299, allocations: 124.4 kB / 294.1 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.132, allocations: 1.11 MB / 295.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002683/0.1347, allocations: 1.328 MB / 296.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001755/0.1364, allocations: 0.9181 MB / 297.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003347/0.1398, allocations: 3.801 MB / 301.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001952/0.1417, allocations: 1.906 MB / 303.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003015/0.1447, allocations: 2.998 MB / 306.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002064/0.1468, allocations: 1.779 MB / 307.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006321/0.1474, allocations: 469 kB / 308.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008764/0.1483, allocations: 0.6761 MB / 309.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005301/0.1488, allocations: 1.141 MB / 310.2 MB, free: 9.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.1499, allocations: 1.362 MB / 311.6 MB, free: 8.465 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002197/0.1521, allocations: 3.293 MB / 314.9 MB, free: 6.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1521, allocations: 4 kB / 314.9 MB, free: 6.332 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1521, allocations: 0 / 314.9 MB, free: 6.332 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.446e-05/0.1522, allocations: 0 / 314.9 MB, free: 6.332 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.004058/0.1562, allocations: 4.064 MB / 318.9 MB, free: 2.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.1562, allocations: 8.031 kB / 318.9 MB, free: 2.422 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001581/0.1578, allocations: 0.854 MB / 319.8 MB, free: 1.582 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001611/0.1594, allocations: 1.483 MB / 321.3 MB, free: 76 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.1596, allocations: 239.2 kB / 321.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003091/0.1599, allocations: 319.6 kB / 321.8 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.1621, allocations: 2.298 MB / 324.1 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.554e-05/0.1621, allocations: 0 / 324.1 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000177/0.1623, allocations: 135.6 kB / 324.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-05/0.1624, allocations: 146.2 kB / 324.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.1637, allocations: 0.9389 MB / 325.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007842/0.1716, allocations: 8.608 MB / 333.9 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.1729, allocations: 1.09 MB / 335 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004534/0.1733, allocations: 416.6 kB / 335.4 MB, free: 2.086 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001757/0.1751, allocations: 1.338 MB / 336.8 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.1751, allocations: 47.56 kB / 336.8 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 1.864e-06/0.1751, allocations: 0 / 336.8 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.004514/0.1796, allocations: 3.156 MB / 340 MB, free: 13.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.1797, allocations: 76.66 kB / 340 MB, free: 13.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008457/0.1805, allocations: 1.258 MB / 341.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.1806, allocations: 53.7 kB / 341.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005037/0.1811, allocations: 1.328 MB / 342.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.1813, allocations: 0.4971 MB / 343.2 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003738/0.1817, allocations: 325.7 kB / 343.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.992e-05/0.1817, allocations: 305.1 kB / 343.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.182, allocations: 210.7 kB / 344 MB, free: 9.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005009/0.1825, allocations: 0.8183 MB / 344.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009177/0.1834, allocations: 1.21 MB / 346 MB, free: 7.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-06/0.1834, allocations: 8 kB / 346 MB, free: 7.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001166/0.1846, allocations: 1.124 MB / 347.2 MB, free: 6.234 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.1846, allocations: 15.94 kB / 347.2 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.1846, allocations: 24.06 kB / 347.2 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.1848, allocations: 82.28 kB / 347.3 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008326/0.1856, allocations: 435.3 kB / 347.7 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005447/0.1862, allocations: 1.199 MB / 348.9 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.1867, allocations: 71.88 kB / 349 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.559e-05/0.1867, allocations: 67.98 kB / 349 MB, free: 4.27 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.0003695/0.1871, allocations: 236.1 kB / 349.3 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.1873, allocations: 151.8 kB / 349.4 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000962/0.1882, allocations: 0.7929 MB / 350.2 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.1882, allocations: 15.98 kB / 350.2 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1882, allocations: 4 kB / 350.2 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.1882, allocations: 7.922 kB / 350.2 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/0.1906, allocations: 2.231 MB / 352.5 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1906, allocations: 4 kB / 352.5 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005931/0.1912, allocations: 259.7 kB / 352.7 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001239/0.1914, allocations: 62.78 kB / 352.8 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.981e-05/0.1914, allocations: 23.98 kB / 352.8 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004548/0.1919, allocations: 1.16 MB / 354 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1919, allocations: 7.984 kB / 354 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.193, allocations: 1.152 MB / 355.1 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.1933, allocations: 212.6 kB / 355.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.1934, allocations: 35.98 kB / 355.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003438/0.1938, allocations: 35.98 kB / 355.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.284e-05/0.1938, allocations: 93.08 kB / 355.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.344e-05/0.1939, allocations: 27.98 kB / 355.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000462/0.1944, allocations: 0.6261 MB / 356.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1944, allocations: 0 / 356.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007966/0.1952, allocations: 0.5195 MB / 356.7 MB, free: 12.71 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.0002199/0.1954, allocations: 154 kB / 356.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.1964, allocations: 0.9455 MB / 357.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.888e-05/0.1964, allocations: 29.88 kB / 357.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004534/0.1969, allocations: 0.5087 MB / 358.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009969/0.1979, allocations: 481.7 kB / 358.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.2027, allocations: 4.798 MB / 363.6 MB, free: 5.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.2032, allocations: 0.6336 MB / 364.2 MB, free: 5.109 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006003/0.2038, allocations: 280.6 kB / 364.5 MB, free: 4.832 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007911/0.2046, allocations: 487.1 kB / 365 MB, free: 4.352 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2046, allocations: 4 kB / 365 MB, free: 4.348 MB / 314.7 MB Notification: Performance of Templates: time 0.03097/0.2356, allocations: 25.27 MB / 390.2 MB, free: 11.54 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 -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.1055444492958486]