Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.000944/0.000944, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.00104/0.00104, allocations: 174.3 kB / 24.91 MB, free: 8.766 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.8577/0.8577, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.362e-05/1.469e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1223/0.1224, allocations: 26.84 MB / 300.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01457/0.1369, allocations: 8.799 MB / 309.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003887/0.1408, allocations: 259.9 kB / 309.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008414/0.1492, allocations: 8.685 MB / 318.1 MB, free: 4.199 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005634/0.1549, allocations: 2.932 MB / 321 MB, free: 1.867 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002453/0.1573, allocations: 1.898 MB / 322.9 MB, free: 396 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00774/0.1651, allocations: 10.45 MB / 333.3 MB, free: 6.484 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01442/0.1795, allocations: 14.31 MB / 347.6 MB, free: 7.992 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00866/0.1881, allocations: 8.288 MB / 355.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005027/0.1932, allocations: 5.985 MB / 361.9 MB, free: 9.691 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001931/0.1951, allocations: 1.539 MB / 363.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.1973, allocations: 1.905 MB / 365.4 MB, free: 6.246 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0016/0.1989, allocations: 3.09 MB / 368.5 MB, free: 3.148 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002907/0.2018, allocations: 3.95 MB / 372.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007283/0.2091, allocations: 9.898 MB / 382.3 MB, free: 5.266 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2091, allocations: 7.938 kB / 382.3 MB, free: 5.258 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2091, allocations: 0 / 382.3 MB, free: 5.258 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.234e-05/0.2091, allocations: 0 / 382.3 MB, free: 5.258 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.0126/0.2217, allocations: 11.48 MB / 393.8 MB, free: 9.691 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2218, allocations: 12.03 kB / 393.8 MB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01364/0.2354, allocations: 5.62 MB / 399.4 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004537/0.24, allocations: 3.342 MB / 402.8 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/0.2403, allocations: 0.6989 MB / 403.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009138/0.2412, allocations: 0.9334 MB / 404.4 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00777/0.249, allocations: 7.659 MB / 412 MB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/0.2491, allocations: 11.94 kB / 412.1 MB, free: 7.215 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006166/0.2497, allocations: 391.9 kB / 412.4 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003081/0.25, allocations: 0.5155 MB / 413 MB, free: 6.312 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005188/0.2552, allocations: 3.854 MB / 416.8 MB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2323/0.4875, allocations: 29.4 MB / 446.2 MB, free: 70.49 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004951/0.4924, allocations: 4.548 MB / 450.8 MB, free: 70.22 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009981/0.4934, allocations: 1.047 MB / 451.8 MB, free: 70.19 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000197/0.4936, allocations: 125.5 kB / 451.9 MB, free: 70.18 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.4937, allocations: 73.17 kB / 452 MB, free: 70.14 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 4.819e-06/0.4937, allocations: 0 / 452 MB, free: 70.14 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.00928/0.503, allocations: 6.406 MB / 458.4 MB, free: 69.46 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.503, allocations: 89.95 kB / 458.5 MB, free: 69.4 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/0.5045, allocations: 2.448 MB / 460.9 MB, free: 69.05 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001443/0.5047, allocations: 88.7 kB / 461 MB, free: 69.02 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009164/0.5056, allocations: 3.848 MB / 464.9 MB, free: 67.27 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004461/0.506, allocations: 1.394 MB / 466.3 MB, free: 66.39 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008468/0.5069, allocations: 1.081 MB / 467.4 MB, free: 66.29 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 1.995e-05/0.5069, allocations: 313 kB / 467.7 MB, free: 65.99 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006425/0.5075, allocations: 0.5589 MB / 468.2 MB, free: 65.97 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.5087, allocations: 3.091 MB / 471.3 MB, free: 62.89 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002406/0.5111, allocations: 4.433 MB / 475.7 MB, free: 59.74 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.072e-05/0.5112, allocations: 23.66 kB / 475.8 MB, free: 59.74 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.003594/0.5148, allocations: 3.887 MB / 479.7 MB, free: 59.18 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.5148, allocations: 40 kB / 479.7 MB, free: 59.14 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.755e-05/0.5148, allocations: 86.02 kB / 479.8 MB, free: 59.05 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.516, allocations: 0.7328 MB / 480.5 MB, free: 58.53 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/0.5179, allocations: 1.264 MB / 481.8 MB, free: 57.56 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003022/0.521, allocations: 3.747 MB / 485.5 MB, free: 54.97 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.5224, allocations: 238.4 kB / 485.8 MB, free: 54.83 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00022/0.5226, allocations: 255.5 kB / 486 MB, free: 54.64 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001173/0.5238, allocations: 0.5283 MB / 486.5 MB, free: 54.37 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000441/0.5242, allocations: 361.3 kB / 486.9 MB, free: 54.15 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/0.5268, allocations: 2.5 MB / 489.4 MB, free: 52.41 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.5268, allocations: 47.98 kB / 489.4 MB, free: 52.36 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5268, allocations: 8 kB / 489.4 MB, free: 52.35 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/0.5268, allocations: 23.92 kB / 489.5 MB, free: 52.33 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007388/0.5342, allocations: 6.711 MB / 496.2 MB, free: 47.2 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.565e-06/0.5342, allocations: 8.625 kB / 496.2 MB, free: 47.2 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.5354, allocations: 0.5999 MB / 496.8 MB, free: 46.66 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000991/0.5364, allocations: 0.6033 MB / 497.4 MB, free: 46.08 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.5365, allocations: 81.16 kB / 497.5 MB, free: 46.05 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/0.539, allocations: 3.315 MB / 0.489 GB, free: 43.35 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.539, allocations: 4 kB / 0.489 GB, free: 43.34 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00312/0.5422, allocations: 3.113 MB / 0.4921 GB, free: 40.39 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006493/0.5428, allocations: 498.2 kB / 0.4926 GB, free: 39.95 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002673/0.5431, allocations: 78.11 kB / 0.4926 GB, free: 39.93 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006922/0.5438, allocations: 92.73 kB / 0.4927 GB, free: 39.89 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.544, allocations: 274.1 kB / 0.493 GB, free: 39.66 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.5441, allocations: 83.97 kB / 0.4931 GB, free: 39.6 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0007166/0.5448, allocations: 1.104 MB / 0.4941 GB, free: 38.7 MB / 378.8 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5448, allocations: 0 / 0.4941 GB, free: 38.7 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.002823/0.5477, allocations: 1.545 MB / 0.4956 GB, free: 37.31 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003361/0.548, allocations: 250.5 kB / 0.4959 GB, free: 37.16 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.002663/0.5507, allocations: 3.051 MB / 0.4989 GB, free: 34.62 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-05/0.5507, allocations: 66.62 kB / 0.4989 GB, free: 34.56 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.552, allocations: 1.484 MB / 0.5004 GB, free: 33.31 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.5537, allocations: 0.9172 MB / 0.5013 GB, free: 32.68 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.5651, allocations: 13.09 MB / 0.5141 GB, free: 20.6 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/0.5665, allocations: 1.782 MB / 0.5158 GB, free: 18.8 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.001454/0.5679, allocations: 0.6736 MB / 0.5165 GB, free: 18.12 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/0.5692, allocations: 0.904 MB / 0.5173 GB, free: 17.25 MB / 378.8 MB Notification: Performance of SimCode: time 1.232e-06/0.5693, allocations: 4 kB / 0.5173 GB, free: 17.25 MB / 378.8 MB Notification: Performance of Templates: time 0.07097/0.6402, allocations: 60.36 MB / 0.5763 GB, free: 6.773 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.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: 4.2800908191129565]