Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.0009706/0.0009706, allocations: 83.89 kB / 21.19 MB, free: 3.379 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.001048/0.001048, allocations: 145.1 kB / 24.54 MB, free: 24 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.9985/0.9985, allocations: 173.3 MB / 201.1 MB, free: 9.297 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 268 MB, free: 6.355 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.773e-05/2.919e-05, allocations: 6.25 kB / 268 MB, free: 6.348 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1603/0.1603, allocations: 28.04 MB / 296.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01706/0.1774, allocations: 8.319 MB / 304.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006552/0.1839, allocations: 252 kB / 304.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01225/0.1962, allocations: 8.751 MB / 313.4 MB, free: 9.762 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.2062, allocations: 2.912 MB / 316.3 MB, free: 7.457 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004599/0.2108, allocations: 1.872 MB / 318.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01045/0.2213, allocations: 10.37 MB / 328.6 MB, free: 14.28 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01996/0.2413, allocations: 13.93 MB / 342.5 MB, free: 216 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01325/0.2545, allocations: 8.179 MB / 350.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008772/0.2633, allocations: 5.833 MB / 356.5 MB, free: 2.176 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003698/0.267, allocations: 1.539 MB / 358 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005431/0.2724, allocations: 1.89 MB / 359.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002179/0.2746, allocations: 3.097 MB / 363 MB, free: 11.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006181/0.2808, allocations: 3.961 MB / 367 MB, free: 7.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.2923, allocations: 9.906 MB / 376.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2923, allocations: 0 / 376.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2923, allocations: 0 / 376.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003355/0.2926, allocations: 0 / 376.9 MB, free: 13.73 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.02016/0.3128, allocations: 12.76 MB / 389.6 MB, free: 0.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3128, allocations: 8.922 kB / 389.7 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0175/0.3303, allocations: 7.139 MB / 396.8 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.3404, allocations: 6.031 MB / 402.8 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005558/0.3409, allocations: 0.7067 MB / 403.5 MB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003044/0.344, allocations: 0.9217 MB / 404.5 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02121/0.3652, allocations: 8.14 MB / 412.6 MB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000192/0.3654, allocations: 19.83 kB / 412.6 MB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008192/0.3662, allocations: 399.9 kB / 413 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003679/0.3666, allocations: 0.5155 MB / 413.5 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.3778, allocations: 4.368 MB / 417.9 MB, free: 4.395 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3165/0.6943, allocations: 38.65 MB / 456.5 MB, free: 70.11 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007656/0.702, allocations: 6.865 MB / 463.4 MB, free: 69.84 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002173/0.7042, allocations: 1.374 MB / 464.8 MB, free: 69.8 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002383/0.7044, allocations: 98.41 kB / 464.9 MB, free: 69.8 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/0.7045, allocations: 76.47 kB / 464.9 MB, free: 69.75 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 6.282e-06/0.7045, allocations: 3.828 kB / 464.9 MB, free: 69.75 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01696/0.7214, allocations: 8.781 MB / 473.7 MB, free: 68.14 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.7215, allocations: 98.8 kB / 473.8 MB, free: 68.08 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003996/0.7255, allocations: 3.4 MB / 477.2 MB, free: 67.64 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005781/0.7261, allocations: 87.14 kB / 477.3 MB, free: 67.61 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002082/0.7281, allocations: 4.415 MB / 481.7 MB, free: 65.8 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/0.7293, allocations: 1.437 MB / 483.2 MB, free: 64.91 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001279/0.7306, allocations: 1.304 MB / 484.5 MB, free: 64.8 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 5.441e-05/0.7307, allocations: 476.8 kB / 484.9 MB, free: 64.33 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.732, allocations: 0.8423 MB / 485.8 MB, free: 64.31 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.7344, allocations: 4.587 MB / 490.4 MB, free: 59.75 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004403/0.7388, allocations: 6.035 MB / 496.4 MB, free: 54.71 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-05/0.7389, allocations: 24 kB / 496.4 MB, free: 54.69 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.007144/0.746, allocations: 5.274 MB / 0.4899 GB, free: 51.3 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.553e-05/0.7461, allocations: 40 kB / 0.49 GB, free: 51.26 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.974e-05/0.7462, allocations: 84 kB / 0.4901 GB, free: 51.18 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.7478, allocations: 0.7988 MB / 0.4908 GB, free: 50.62 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002707/0.7505, allocations: 1.371 MB / 0.4922 GB, free: 49.44 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00498/0.7555, allocations: 5.066 MB / 0.4971 GB, free: 44.82 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003243/0.7588, allocations: 331.5 kB / 0.4974 GB, free: 44.5 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005779/0.7593, allocations: 308 kB / 0.4977 GB, free: 44.2 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.002217/0.7616, allocations: 0.5645 MB / 0.4983 GB, free: 43.72 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007101/0.7623, allocations: 0.5248 MB / 0.4988 GB, free: 43.2 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004521/0.7668, allocations: 3.421 MB / 0.5021 GB, free: 39.77 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.7668, allocations: 40 kB / 0.5022 GB, free: 39.73 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.7668, allocations: 9.031 kB / 0.5022 GB, free: 39.72 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.7668, allocations: 19.92 kB / 0.5022 GB, free: 39.7 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01547/0.7823, allocations: 10.75 MB / 0.5127 GB, free: 29 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.7823, allocations: 8 kB / 0.5127 GB, free: 28.99 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.7838, allocations: 0.6931 MB / 0.5134 GB, free: 28.34 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/0.7852, allocations: 0.6652 MB / 0.514 GB, free: 27.67 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001812/0.7854, allocations: 83.98 kB / 0.5141 GB, free: 27.59 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004167/0.7895, allocations: 4.539 MB / 0.5185 GB, free: 22.95 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.7895, allocations: 7.938 kB / 0.5185 GB, free: 22.95 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005874/0.7954, allocations: 4.331 MB / 0.5228 GB, free: 18.49 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/0.797, allocations: 0.7602 MB / 0.5235 GB, free: 17.73 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003835/0.7973, allocations: 76 kB / 0.5236 GB, free: 17.65 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000968/0.7983, allocations: 183.8 kB / 0.5238 GB, free: 17.47 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003367/0.7986, allocations: 278 kB / 0.524 GB, free: 17.2 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.7988, allocations: 116 kB / 0.5241 GB, free: 17.09 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001852/0.8006, allocations: 1.545 MB / 0.5257 GB, free: 15.55 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8006, allocations: 0 / 0.5257 GB, free: 15.55 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.004544/0.8052, allocations: 1.546 MB / 0.5272 GB, free: 14.01 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.0005658/0.8057, allocations: 261.2 kB / 0.5274 GB, free: 13.79 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.005717/0.8115, allocations: 3.871 MB / 0.5312 GB, free: 10.15 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.8115, allocations: 0 / 0.5312 GB, free: 10.15 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002307/0.8138, allocations: 1.867 MB / 0.533 GB, free: 8.34 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00315/0.8169, allocations: 0.9189 MB / 0.5339 GB, free: 7.469 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0209/0.8378, allocations: 13.46 MB / 0.5471 GB, free: 9.828 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00298/0.8408, allocations: 2.479 MB / 0.5495 GB, free: 7.309 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.003545/0.8443, allocations: 1.602 MB / 0.551 GB, free: 5.699 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008552/0.8452, allocations: 340.4 kB / 0.5514 GB, free: 5.367 MB / 394.8 MB Notification: Performance of SimCode: time 2.504e-06/0.8452, allocations: 0 / 0.5514 GB, free: 5.367 MB / 394.8 MB Notification: Performance of Templates: time 0.2464/1.092, allocations: 54.55 MB / 0.6046 GB, free: 127.4 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.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.960161517839879]