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.001038/0.001038, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001651/0.001651, allocations: 165.8 kB / 24.82 MB, free: 9.266 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.9952/0.9952, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.79e-05/1.939e-05, allocations: 4.844 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1269/0.1269, allocations: 26.82 MB / 300.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01703/0.1439, allocations: 8.346 MB / 308.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006447/0.1504, allocations: 252.4 kB / 308.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01096/0.1613, allocations: 8.454 MB / 317.3 MB, free: 4.688 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008266/0.1696, allocations: 2.894 MB / 320.2 MB, free: 2.383 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004183/0.1738, allocations: 1.881 MB / 322.1 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01244/0.1862, allocations: 10.44 MB / 332.5 MB, free: 7.238 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02866/0.2149, allocations: 13.92 MB / 346.4 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01811/0.233, allocations: 8.245 MB / 354.7 MB, free: 0.918 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01382/0.2468, allocations: 5.926 MB / 360.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.007038/0.2539, allocations: 1.535 MB / 362.1 MB, free: 9.445 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01192/0.2658, allocations: 1.917 MB / 364.1 MB, free: 7.527 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01008/0.2759, allocations: 3.078 MB / 367.1 MB, free: 4.441 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01326/0.2891, allocations: 3.957 MB / 371.1 MB, free: 488 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02335/0.3125, allocations: 9.894 MB / 381 MB, free: 6.551 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.3125, allocations: 8 kB / 381 MB, free: 6.543 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3125, allocations: 0 / 381 MB, free: 6.543 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004059/0.3129, allocations: 7.938 kB / 381 MB, free: 6.535 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.01867/0.3315, allocations: 12.26 MB / 393.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3316, allocations: 12.03 kB / 393.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/0.3457, allocations: 5.412 MB / 398.7 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007186/0.3529, allocations: 5.648 MB / 404.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004084/0.3533, allocations: 0.7028 MB / 405 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.3546, allocations: 0.9334 MB / 406 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/0.3663, allocations: 7.49 MB / 413.5 MB, free: 5.766 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001641/0.3665, allocations: 11.94 kB / 413.5 MB, free: 5.754 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006581/0.3672, allocations: 392 kB / 413.9 MB, free: 5.371 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003445/0.3675, allocations: 0.5155 MB / 414.4 MB, free: 4.852 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006079/0.3736, allocations: 3.454 MB / 417.8 MB, free: 1.352 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2746/0.6482, allocations: 38.14 MB / 456 MB, free: 69.93 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006712/0.6549, allocations: 6.027 MB / 462 MB, free: 69.64 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.6565, allocations: 1.201 MB / 463.2 MB, free: 69.6 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002385/0.6567, allocations: 139.5 kB / 463.3 MB, free: 69.57 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.065e-05/0.6568, allocations: 75.5 kB / 463.4 MB, free: 69.52 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.561e-06/0.6568, allocations: 3.469 kB / 463.4 MB, free: 69.52 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01055/0.6673, allocations: 7.193 MB / 470.6 MB, free: 68.34 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.6674, allocations: 92.3 kB / 470.7 MB, free: 68.27 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002472/0.6698, allocations: 3.364 MB / 474.1 MB, free: 67.83 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.67, allocations: 86.92 kB / 474.1 MB, free: 67.8 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.6713, allocations: 4.444 MB / 478.6 MB, free: 66 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005647/0.6719, allocations: 1.447 MB / 480 MB, free: 65.12 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001035/0.6729, allocations: 1.325 MB / 481.4 MB, free: 65 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.524e-05/0.673, allocations: 480.7 kB / 481.8 MB, free: 64.53 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006896/0.6737, allocations: 0.6456 MB / 482.5 MB, free: 64.52 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001614/0.6753, allocations: 4.42 MB / 486.9 MB, free: 59.19 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002953/0.6782, allocations: 5.722 MB / 492.6 MB, free: 53.01 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-05/0.6783, allocations: 26.72 kB / 492.6 MB, free: 52.98 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.005388/0.6837, allocations: 4.816 MB / 497.5 MB, free: 49.52 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.6837, allocations: 40.88 kB / 497.5 MB, free: 49.48 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.156e-05/0.6838, allocations: 84 kB / 497.6 MB, free: 49.39 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.6851, allocations: 0.7733 MB / 498.4 MB, free: 48.66 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/0.6872, allocations: 1.284 MB / 499.6 MB, free: 47.53 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003688/0.6909, allocations: 4.828 MB / 0.4926 GB, free: 42.85 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/0.6931, allocations: 239.7 kB / 0.4929 GB, free: 42.61 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002653/0.6933, allocations: 264 kB / 0.4931 GB, free: 42.36 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.001771/0.6951, allocations: 0.5636 MB / 0.4937 GB, free: 41.88 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006218/0.6957, allocations: 0.5248 MB / 0.4942 GB, free: 41.36 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003317/0.699, allocations: 3.043 MB / 0.4972 GB, free: 38.31 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.6991, allocations: 43.98 kB / 0.4972 GB, free: 38.27 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.6991, allocations: 8 kB / 0.4972 GB, free: 38.26 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.6991, allocations: 21.12 kB / 0.4972 GB, free: 38.24 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/0.7093, allocations: 8.344 MB / 0.5054 GB, free: 30.48 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.7093, allocations: 4 kB / 0.5054 GB, free: 30.48 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.7105, allocations: 0.6189 MB / 0.506 GB, free: 29.89 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.7117, allocations: 0.6298 MB / 0.5066 GB, free: 29.27 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/0.7119, allocations: 91.97 kB / 0.5067 GB, free: 29.18 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003172/0.715, allocations: 4.332 MB / 0.5109 GB, free: 24.83 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.715, allocations: 14.89 kB / 0.5109 GB, free: 24.82 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004279/0.7193, allocations: 3.841 MB / 0.5147 GB, free: 20.92 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/0.7207, allocations: 0.6998 MB / 0.5154 GB, free: 20.22 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.7209, allocations: 72 kB / 0.5154 GB, free: 20.15 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007396/0.7217, allocations: 99.95 kB / 0.5155 GB, free: 20.05 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003112/0.722, allocations: 282.4 kB / 0.5158 GB, free: 19.78 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.7221, allocations: 95.97 kB / 0.5159 GB, free: 19.69 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001304/0.7234, allocations: 1.424 MB / 0.5173 GB, free: 18.41 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7234, allocations: 0 / 0.5173 GB, free: 18.41 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003691/0.7271, allocations: 1.539 MB / 0.5188 GB, free: 16.87 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.0003614/0.7275, allocations: 275.4 kB / 0.519 GB, free: 16.64 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.003585/0.7311, allocations: 3.53 MB / 0.5225 GB, free: 13.4 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7311, allocations: 4 kB / 0.5225 GB, free: 13.4 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.7326, allocations: 1.71 MB / 0.5242 GB, free: 11.78 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.7347, allocations: 0.9259 MB / 0.5251 GB, free: 10.91 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.7489, allocations: 13.26 MB / 0.538 GB, free: 13.54 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002315/0.7512, allocations: 2.483 MB / 0.5404 GB, free: 11.02 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.002282/0.7535, allocations: 0.6743 MB / 0.5411 GB, free: 10.34 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001691/0.7552, allocations: 1.009 MB / 0.5421 GB, free: 9.324 MB / 394.8 MB Notification: Performance of SimCode: time 2.074e-06/0.7552, allocations: 0 / 0.5421 GB, free: 9.324 MB / 394.8 MB Notification: Performance of Templates: time 0.1964/0.9515, allocations: 59.96 MB / 0.6007 GB, free: 122.9 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.6348458281718194]