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.0009471/0.0009471, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001564/0.001564, allocations: 165 kB / 24.91 MB, free: 9.188 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.8745/0.8745, allocations: 177 MB / 205.2 MB, free: 5.465 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.002e-06/1.002e-06, allocations: 0 / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.377e-06/1.038e-05, allocations: 2.312 kB / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01106/0.01107, allocations: 15.06 MB / 288.5 MB, free: 2.078 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.09854/0.1096, allocations: 5.442 MB / 293.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.1112, allocations: 127.7 kB / 294 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.1131, allocations: 1.11 MB / 295.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002365/0.1155, allocations: 1.327 MB / 296.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.1167, allocations: 0.921 MB / 297.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002944/0.1197, allocations: 3.813 MB / 301.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001831/0.1215, allocations: 1.9 MB / 303.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002873/0.1244, allocations: 2.999 MB / 306.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001966/0.1264, allocations: 1.792 MB / 307.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006316/0.127, allocations: 468.4 kB / 308.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000815/0.1278, allocations: 0.6746 MB / 309 MB, free: 9.973 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005106/0.1283, allocations: 1.14 MB / 310.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.1293, allocations: 1.35 MB / 311.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.1312, allocations: 3.309 MB / 314.8 MB, free: 6.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.1313, allocations: 4 kB / 314.8 MB, free: 6.227 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1313, allocations: 0 / 314.8 MB, free: 6.227 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.1313, allocations: 0 / 314.8 MB, free: 6.227 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.003513/0.1348, allocations: 4.072 MB / 318.9 MB, free: 2.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.501e-05/0.1348, allocations: 11.98 kB / 318.9 MB, free: 2.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00148/0.1363, allocations: 0.847 MB / 319.8 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/0.1378, allocations: 1.496 MB / 321.3 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.1379, allocations: 234.7 kB / 321.5 MB, free: 15.72 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002859/0.1382, allocations: 310.9 kB / 321.8 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002234/0.1405, allocations: 2.3 MB / 324.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.196e-05/0.1405, allocations: 3.953 kB / 324.1 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001799/0.1407, allocations: 134 kB / 324.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.713e-05/0.1408, allocations: 146.2 kB / 324.4 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.1421, allocations: 0.9417 MB / 325.3 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008154/0.1503, allocations: 8.619 MB / 333.9 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.1516, allocations: 1.089 MB / 335 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/0.1521, allocations: 408.3 kB / 335.4 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001965/0.154, allocations: 1.342 MB / 336.8 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.154, allocations: 39.56 kB / 336.8 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 1.914e-06/0.154, allocations: 0 / 336.8 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.004472/0.1585, allocations: 3.174 MB / 340 MB, free: 13.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.1585, allocations: 68.66 kB / 340 MB, free: 13.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000824/0.1594, allocations: 1.268 MB / 341.3 MB, free: 12.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.226e-05/0.1594, allocations: 57.64 kB / 341.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005191/0.16, allocations: 1.329 MB / 342.7 MB, free: 11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/0.1602, allocations: 0.4957 MB / 343.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.1605, allocations: 333.4 kB / 343.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000271/0.1608, allocations: 301.1 kB / 343.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.161, allocations: 206.7 kB / 344 MB, free: 9.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000499/0.1615, allocations: 0.8217 MB / 344.8 MB, free: 8.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009104/0.1624, allocations: 1.209 MB / 346 MB, free: 7.242 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1625, allocations: 4 kB / 346 MB, free: 7.238 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001155/0.1636, allocations: 1.122 MB / 347.2 MB, free: 6.102 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1636, allocations: 20.19 kB / 347.2 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.1636, allocations: 16 kB / 347.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001465/0.1638, allocations: 90.45 kB / 347.3 MB, free: 5.973 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008217/0.1646, allocations: 427.3 kB / 347.7 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000524/0.1651, allocations: 1.19 MB / 348.9 MB, free: 4.285 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.1656, allocations: 67.84 kB / 349 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.529e-05/0.1657, allocations: 67.98 kB / 349 MB, free: 4.152 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.000374/0.1661, allocations: 239.1 kB / 349.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.1662, allocations: 155.8 kB / 349.4 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009022/0.1671, allocations: 0.8007 MB / 350.2 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.1671, allocations: 16 kB / 350.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1671, allocations: 0 / 350.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.1671, allocations: 7.969 kB / 350.2 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.1698, allocations: 2.226 MB / 352.5 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1698, allocations: 0 / 352.5 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005967/0.1704, allocations: 271.5 kB / 352.7 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.1705, allocations: 62.77 kB / 352.8 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.1706, allocations: 28 kB / 352.8 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004548/0.171, allocations: 1.162 MB / 354 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.171, allocations: 4 kB / 354 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.1721, allocations: 1.156 MB / 355.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.1725, allocations: 214.7 kB / 355.4 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.1726, allocations: 24 kB / 355.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.1729, allocations: 39.98 kB / 355.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.898e-05/0.173, allocations: 89.12 kB / 355.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.165e-05/0.1731, allocations: 24 kB / 355.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004694/0.1735, allocations: 0.6318 MB / 356.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1735, allocations: 4.031 kB / 356.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008066/0.1743, allocations: 0.5156 MB / 356.7 MB, free: 12.59 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.0002009/0.1745, allocations: 160 kB / 356.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00095/0.1755, allocations: 0.94 MB / 357.8 MB, free: 11.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-05/0.1755, allocations: 26.31 kB / 357.8 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006781/0.1762, allocations: 0.5064 MB / 358.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.1772, allocations: 490.6 kB / 358.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005095/0.1823, allocations: 4.797 MB / 363.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005068/0.1828, allocations: 0.6376 MB / 364.2 MB, free: 4.98 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006207/0.1834, allocations: 284.6 kB / 364.5 MB, free: 4.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007324/0.1842, allocations: 483.1 kB / 365 MB, free: 4.223 MB / 314.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1842, allocations: 0 / 365 MB, free: 4.223 MB / 314.7 MB Notification: Performance of Templates: time 0.0318/0.216, allocations: 25.28 MB / 390.3 MB, free: 11.37 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 -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.0824202820658684]