Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9821/0.9821, allocations: 173.4 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.443e-05/2.593e-05, allocations: 2.312 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01254/0.01256, allocations: 15 MB / 283 MB, free: 7.348 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009061/0.02162, allocations: 5.018 MB / 288 MB, free: 2.312 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001827/0.02345, allocations: 119.2 kB / 288.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.0255, allocations: 1.071 MB / 289.2 MB, free: 1.117 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.113/0.1385, allocations: 1.344 MB / 290.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001972/0.1405, allocations: 0.878 MB / 291.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003428/0.1439, allocations: 3.761 MB / 295.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0022/0.1461, allocations: 1.854 MB / 297.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003312/0.1494, allocations: 2.997 MB / 300.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.1516, allocations: 1.762 MB / 301.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008028/0.1524, allocations: 467.1 kB / 302.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.1534, allocations: 0.6642 MB / 302.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005531/0.154, allocations: 1.139 MB / 304.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001294/0.1553, allocations: 1.35 MB / 305.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002567/0.1579, allocations: 3.281 MB / 308.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1579, allocations: 0 / 308.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1579, allocations: 0 / 308.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001039/0.158, allocations: 4 kB / 308.7 MB, free: 10.91 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.005122/0.1631, allocations: 4.38 MB / 313.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1631, allocations: 14.42 kB / 313.1 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001636/0.1648, allocations: 0.9787 MB / 314.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001881/0.1666, allocations: 2.171 MB / 316.3 MB, free: 5.914 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-05/0.1667, allocations: 237.1 kB / 316.5 MB, free: 5.684 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002357/0.167, allocations: 316.3 kB / 316.8 MB, free: 5.375 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002681/0.1696, allocations: 2.444 MB / 319.2 MB, free: 2.848 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.083e-05/0.1697, allocations: 11.08 kB / 319.2 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001637/0.1699, allocations: 135.9 kB / 319.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.217e-05/0.1699, allocations: 150.2 kB / 319.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.1718, allocations: 1.171 MB / 320.7 MB, free: 1.387 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009744/0.1816, allocations: 10.74 MB / 331.4 MB, free: 6.543 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.1832, allocations: 1.194 MB / 332.6 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006512/0.1838, allocations: 494.3 kB / 333.1 MB, free: 4.922 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002056/0.1859, allocations: 1.659 MB / 334.8 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.1859, allocations: 46.39 kB / 334.8 MB, free: 3.215 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 2.655e-06/0.1859, allocations: 0 / 334.8 MB, free: 3.215 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.005082/0.191, allocations: 3.668 MB / 338.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.191, allocations: 64.72 kB / 338.5 MB, free: 15.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.1924, allocations: 1.511 MB / 340.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.334e-05/0.1924, allocations: 49.7 kB / 340.1 MB, free: 13.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007665/0.1932, allocations: 1.656 MB / 341.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006466/0.1938, allocations: 0.5062 MB / 342.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003344/0.1942, allocations: 349 kB / 342.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.22e-05/0.1943, allocations: 480.8 kB / 343.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004389/0.1947, allocations: 279.8 kB / 343.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000813/0.1955, allocations: 1.168 MB / 344.5 MB, free: 9.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.1969, allocations: 1.576 MB / 346.1 MB, free: 7.219 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.1969, allocations: 8 kB / 346.1 MB, free: 7.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001802/0.1987, allocations: 1.557 MB / 347.7 MB, free: 5.758 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.1987, allocations: 12.88 kB / 347.7 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.1988, allocations: 20 kB / 347.7 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.199, allocations: 107 kB / 347.8 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009206/0.1999, allocations: 455.3 kB / 348.2 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/0.201, allocations: 1.775 MB / 350 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005929/0.2016, allocations: 95.89 kB / 350.1 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.391e-05/0.2016, allocations: 76 kB / 350.2 MB, free: 3.145 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.0005699/0.2022, allocations: 283.4 kB / 350.5 MB, free: 2.887 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.2024, allocations: 242.7 kB / 350.7 MB, free: 2.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/0.2038, allocations: 1.083 MB / 351.8 MB, free: 1.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.2038, allocations: 12 kB / 351.8 MB, free: 1.535 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2038, allocations: 0 / 351.8 MB, free: 1.535 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.2038, allocations: 7.969 kB / 351.8 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003887/0.2077, allocations: 3.362 MB / 355.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2077, allocations: 0 / 355.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006609/0.2083, allocations: 291.5 kB / 355.5 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000154/0.2085, allocations: 71.27 kB / 355.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.695e-05/0.2086, allocations: 31.98 kB / 355.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008382/0.2094, allocations: 1.735 MB / 357.3 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2094, allocations: 4 kB / 357.3 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/0.2112, allocations: 1.566 MB / 358.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004047/0.2116, allocations: 330.6 kB / 359.2 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.2117, allocations: 24 kB / 359.2 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.2121, allocations: 63.89 kB / 359.3 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.2122, allocations: 92.78 kB / 359.4 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-05/0.2123, allocations: 40 kB / 359.4 MB, free: 9.719 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008068/0.2131, allocations: 0.8356 MB / 360.2 MB, free: 8.891 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2131, allocations: 32 / 360.2 MB, free: 8.891 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001138/0.2142, allocations: 0.5195 MB / 360.8 MB, free: 8.371 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.0002712/0.2145, allocations: 171.9 kB / 360.9 MB, free: 8.211 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.216, allocations: 1.206 MB / 362.1 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.216, allocations: 4 kB / 362.1 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000676/0.2167, allocations: 0.6643 MB / 362.8 MB, free: 6.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.2178, allocations: 474.5 kB / 363.3 MB, free: 5.938 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006255/0.2241, allocations: 4.906 MB / 368.2 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.2246, allocations: 0.7503 MB / 368.9 MB, free: 176 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008415/0.2255, allocations: 416.4 kB / 369.3 MB, free: 15.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002833/0.2258, allocations: 136.5 kB / 369.5 MB, free: 15.63 MB / 330.7 MB Notification: Performance of SimCode: time 1.262e-06/0.2258, allocations: 0 / 369.5 MB, free: 15.63 MB / 330.7 MB Notification: Performance of Templates: time 0.0331/0.2589, allocations: 24.18 MB / 393.6 MB, free: 7.887 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.371920809149742]