Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009764/0.0009764, allocations: 84.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009544/0.0009544, allocations: 159.7 kB / 24.91 MB, free: 8.711 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9119/0.9119, allocations: 177 MB / 205.2 MB, free: 5.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.115e-05/2.273e-05, allocations: 5.266 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02029/0.02032, allocations: 15.1 MB / 288.6 MB, free: 1.969 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1331/0.1534, allocations: 5.448 MB / 294 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.1552, allocations: 126.2 kB / 294.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002076/0.1573, allocations: 1.112 MB / 295.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002555/0.1598, allocations: 1.314 MB / 296.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.1612, allocations: 0.9074 MB / 297.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002981/0.1642, allocations: 3.815 MB / 301.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001822/0.166, allocations: 1.909 MB / 303.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002795/0.1688, allocations: 3.004 MB / 306.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/0.1707, allocations: 1.778 MB / 308 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005159/0.1712, allocations: 468.3 kB / 308.4 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008645/0.1721, allocations: 0.6845 MB / 309.1 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004964/0.1726, allocations: 1.142 MB / 310.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009615/0.1735, allocations: 1.358 MB / 311.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002165/0.1757, allocations: 3.301 MB / 314.9 MB, free: 6.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1757, allocations: 8 kB / 314.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1757, allocations: 0 / 314.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.587e-05/0.1757, allocations: 0 / 314.9 MB, free: 6.133 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.003706/0.1794, allocations: 4.071 MB / 319 MB, free: 2.227 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1795, allocations: 15.98 kB / 319 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/0.1811, allocations: 0.8469 MB / 319.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.1826, allocations: 1.493 MB / 321.3 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.1827, allocations: 239.8 kB / 321.6 MB, free: 15.63 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000277/0.183, allocations: 317.1 kB / 321.9 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/0.1852, allocations: 2.296 MB / 324.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.991e-05/0.1853, allocations: 15.89 kB / 324.2 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002945/0.1855, allocations: 127.9 kB / 324.3 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.073e-05/0.1856, allocations: 146.2 kB / 324.5 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.1869, allocations: 0.9445 MB / 325.4 MB, free: 11.83 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008112/0.195, allocations: 8.598 MB / 334 MB, free: 3.324 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.1963, allocations: 1.098 MB / 335.1 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004394/0.1967, allocations: 401.1 kB / 335.5 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001652/0.1984, allocations: 1.348 MB / 336.9 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.1984, allocations: 47.55 kB / 336.9 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 1.653e-06/0.1984, allocations: 4 kB / 336.9 MB, free: 500 kB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.004785/0.2032, allocations: 3.156 MB / 340.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.2032, allocations: 72.66 kB / 340.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009051/0.2041, allocations: 1.272 MB / 341.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.853e-05/0.2042, allocations: 45.7 kB / 341.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005762/0.2048, allocations: 1.334 MB / 342.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.2051, allocations: 0.4957 MB / 343.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.2053, allocations: 321.3 kB / 343.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.004e-05/0.2054, allocations: 309.1 kB / 343.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.2057, allocations: 210.7 kB / 344.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000525/0.2062, allocations: 0.8223 MB / 344.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009872/0.2072, allocations: 1.211 MB / 346.1 MB, free: 7.148 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.2072, allocations: 4 kB / 346.1 MB, free: 7.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001474/0.2087, allocations: 1.123 MB / 347.3 MB, free: 6.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2087, allocations: 15.12 kB / 347.3 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.2087, allocations: 20.84 kB / 347.3 MB, free: 5.973 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.2089, allocations: 88.5 kB / 347.4 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009431/0.2098, allocations: 487.2 kB / 347.9 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005303/0.2104, allocations: 1.191 MB / 349 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.2108, allocations: 76.03 kB / 349.1 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.431e-05/0.2109, allocations: 67.92 kB / 349.2 MB, free: 3.992 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.0003788/0.2113, allocations: 228 kB / 349.4 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.2114, allocations: 155.8 kB / 349.6 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008714/0.2123, allocations: 0.8035 MB / 350.4 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.2123, allocations: 16 kB / 350.4 MB, free: 2.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2123, allocations: 4 kB / 350.4 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.2123, allocations: 7.969 kB / 350.4 MB, free: 2.758 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/0.2147, allocations: 2.221 MB / 352.6 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2147, allocations: 0 / 352.6 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006949/0.2154, allocations: 311.8 kB / 352.9 MB, free: 396 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.2155, allocations: 64.41 kB / 353 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-05/0.2155, allocations: 23.98 kB / 353 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006629/0.2162, allocations: 1.159 MB / 354.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2162, allocations: 7.938 kB / 354.2 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.2173, allocations: 1.149 MB / 355.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.2176, allocations: 222.6 kB / 355.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.2177, allocations: 24 kB / 355.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003329/0.218, allocations: 39.98 kB / 355.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.2181, allocations: 97 kB / 355.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-05/0.2182, allocations: 28 kB / 355.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004604/0.2186, allocations: 0.6258 MB / 356.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2186, allocations: 0 / 356.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008311/0.2195, allocations: 0.5117 MB / 356.9 MB, free: 12.4 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.000202/0.2197, allocations: 154.8 kB / 357 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009182/0.2206, allocations: 0.9515 MB / 358 MB, free: 11.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.583e-05/0.2206, allocations: 22.69 kB / 358 MB, free: 11.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000447/0.2211, allocations: 0.5142 MB / 358.5 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009664/0.222, allocations: 477.9 kB / 359 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005539/0.2276, allocations: 4.805 MB / 363.8 MB, free: 5.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.2281, allocations: 0.6375 MB / 364.4 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006386/0.2287, allocations: 288.6 kB / 364.7 MB, free: 4.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007298/0.2294, allocations: 491 kB / 365.2 MB, free: 4.016 MB / 314.7 MB Notification: Performance of SimCode: time 1.342e-06/0.2294, allocations: 0 / 365.2 MB, free: 4.016 MB / 314.7 MB Notification: Performance of Templates: time 0.03116/0.2606, allocations: 25.38 MB / 390.5 MB, free: 11.06 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.1390957050025463]