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.0007402/0.0007402, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009801/0.00172, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001059/0.001059, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001333/0.002392, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9587/0.9587, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07882/1.038, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.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.313e-06/1.313e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.005e-05/2.136e-05, allocations: 6.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01214/0.01216, allocations: 15.23 MB / 260.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007423/0.01958, allocations: 5.487 MB / 265.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007967/0.02038, allocations: 123.2 kB / 265.9 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.02178, allocations: 1.118 MB / 267 MB, free: 7.578 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001597/0.02337, allocations: 1.316 MB / 268.3 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009151/0.02429, allocations: 0.9076 MB / 269.2 MB, free: 5.344 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002299/0.02659, allocations: 3.821 MB / 273 MB, free: 1.508 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1004/0.127, allocations: 1.896 MB / 274.9 MB, free: 2.684 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004479/0.1314, allocations: 3.22 MB / 278.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.1342, allocations: 1.781 MB / 279.9 MB, free: 2.609 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001195/0.1354, allocations: 467.5 kB / 280.4 MB, free: 2.609 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.137, allocations: 0.6896 MB / 281.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009216/0.1379, allocations: 0.9193 MB / 282 MB, free: 2.609 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001826/0.1397, allocations: 1.131 MB / 283.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004314/0.1441, allocations: 3.129 MB / 286.3 MB, free: 2.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.479e-05/0.1441, allocations: 0 / 286.3 MB, free: 2.336 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1441, allocations: 0 / 286.3 MB, free: 2.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001675/0.1442, allocations: 0.5938 kB / 286.3 MB, free: 2.336 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.006226/0.1505, allocations: 4.862 MB / 291.1 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.1505, allocations: 10.28 kB / 291.1 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.1521, allocations: 0.8515 MB / 292 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001999/0.1541, allocations: 1.502 MB / 293.5 MB, free: 88 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.731e-05/0.1542, allocations: 231.2 kB / 293.7 MB, free: 80 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000253/0.1545, allocations: 315.6 kB / 294 MB, free: 76 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002465/0.157, allocations: 2.296 MB / 296.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.224e-05/0.157, allocations: 7.234 kB / 296.3 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001808/0.1572, allocations: 134.5 kB / 296.4 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.372e-05/0.1573, allocations: 145.9 kB / 296.6 MB, free: 15.72 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.1587, allocations: 0.9488 MB / 297.5 MB, free: 15.17 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008817/0.1675, allocations: 8.644 MB / 306.2 MB, free: 7.465 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.1688, allocations: 1.1 MB / 307.3 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/0.1693, allocations: 398.6 kB / 307.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001886/0.1711, allocations: 1.351 MB / 309 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.1712, allocations: 47.56 kB / 309.1 MB, free: 4.652 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 2.705e-06/0.1712, allocations: 0 / 309.1 MB, free: 4.652 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.004933/0.1761, allocations: 3.152 MB / 312.2 MB, free: 1.527 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.1761, allocations: 76.66 kB / 312.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.1772, allocations: 1.266 MB / 313.6 MB, free: 428 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.782e-05/0.1772, allocations: 49.7 kB / 313.6 MB, free: 372 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005828/0.1778, allocations: 1.331 MB / 314.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.1781, allocations: 0.5042 MB / 315.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002949/0.1784, allocations: 320.9 kB / 315.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.1785, allocations: 305.1 kB / 316.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002744/0.1788, allocations: 206.7 kB / 316.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005321/0.1793, allocations: 0.8169 MB / 317.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009981/0.1803, allocations: 1.209 MB / 318.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/0.1803, allocations: 8 kB / 318.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001239/0.1815, allocations: 1.127 MB / 319.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.1816, allocations: 12 kB / 319.4 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/0.1816, allocations: 20.7 kB / 319.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001761/0.1818, allocations: 81.8 kB / 319.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.1828, allocations: 0.5108 MB / 320 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006481/0.1835, allocations: 1.191 MB / 321.2 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000624/0.1841, allocations: 63.95 kB / 321.3 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.712e-05/0.1842, allocations: 67.98 kB / 321.4 MB, free: 8.43 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.0006491/0.1848, allocations: 241.8 kB / 321.6 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.185, allocations: 159.8 kB / 321.8 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009269/0.1859, allocations: 0.8037 MB / 322.6 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.1859, allocations: 12 kB / 322.6 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1859, allocations: 4 kB / 322.6 MB, free: 7.227 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.1859, allocations: 7.969 kB / 322.6 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.1886, allocations: 2.223 MB / 324.8 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.1886, allocations: 4 kB / 324.8 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007434/0.1894, allocations: 325.7 kB / 325.1 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003378/0.1897, allocations: 218.7 kB / 325.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001339/0.1899, allocations: 58.17 kB / 325.4 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.605e-05/0.1899, allocations: 28 kB / 325.4 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005044/0.1904, allocations: 1.167 MB / 326.6 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.1904, allocations: 7.984 kB / 326.6 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.1915, allocations: 1.152 MB / 327.8 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.1916, allocations: 27.94 kB / 327.8 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.192, allocations: 44.14 kB / 327.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.762e-05/0.1921, allocations: 89.08 kB / 327.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.1921, allocations: 35.64 kB / 327.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004865/0.1926, allocations: 0.6196 MB / 328.6 MB, free: 1.395 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1926, allocations: 0 / 328.6 MB, free: 1.395 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001032/0.1936, allocations: 0.5234 MB / 329.1 MB, free: 0.8711 MB / 298.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.0002372/0.1939, allocations: 159.2 kB / 329.2 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1949, allocations: 0.9458 MB / 330.2 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.304e-05/0.1949, allocations: 32.44 kB / 330.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004495/0.1954, allocations: 0.4973 MB / 330.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.1965, allocations: 0.6176 MB / 331.3 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02243/0.2189, allocations: 5 MB / 336.3 MB, free: 9.719 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007078/0.2196, allocations: 0.6229 MB / 337 MB, free: 9.078 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001124/0.2207, allocations: 284.6 kB / 337.2 MB, free: 8.797 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009543/0.2217, allocations: 487.1 kB / 337.7 MB, free: 8.316 MB / 314.7 MB Notification: Performance of SimCode: time 1.563e-06/0.2217, allocations: 0 / 337.7 MB, free: 8.316 MB / 314.7 MB Notification: Performance of Templates: time 0.04321/0.2649, allocations: 26.6 MB / 364.3 MB, free: 14.19 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 -ignoreHideResult -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.0063597466796637]