Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009682/0.0009682, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001601/0.001601, allocations: 168.3 kB / 25.33 MB, free: 9.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.878/0.878, allocations: 158.6 MB / 187.2 MB, free: 2.562 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 251.1 MB, free: 3.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.955e-05/2.101e-05, allocations: 2.312 kB / 251.1 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02147/0.02149, allocations: 28.61 MB / 279.7 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.03569, allocations: 8.463 MB / 288.2 MB, free: 14.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004745/0.04044, allocations: 218.9 kB / 288.4 MB, free: 14.1 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.05171, allocations: 8.785 MB / 297.2 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01074/0.06244, allocations: 3.146 MB / 300.3 MB, free: 2.113 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005169/0.06761, allocations: 1.929 MB / 302.3 MB, free: 184 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.1177/0.1853, allocations: 10.91 MB / 313.2 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01301/0.1984, allocations: 14.09 MB / 327.3 MB, free: 9.367 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007001/0.2054, allocations: 8.568 MB / 335.8 MB, free: 5.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005179/0.2105, allocations: 6.226 MB / 342 MB, free: 3.297 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001529/0.2121, allocations: 1.574 MB / 343.6 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002242/0.2143, allocations: 1.992 MB / 345.6 MB, free: 0 / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001688/0.216, allocations: 3.299 MB / 348.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00303/0.219, allocations: 4.137 MB / 353 MB, free: 9.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007694/0.2267, allocations: 10.33 MB / 363.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2267, allocations: 2.531 kB / 363.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2267, allocations: 0 / 363.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001381/0.2269, allocations: 0 / 363.4 MB, free: 15.67 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.01519/0.242, allocations: 13.37 MB / 376.7 MB, free: 2.316 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2421, allocations: 11.41 kB / 376.8 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02428/0.2664, allocations: 10.52 MB / 387.3 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006829/0.2732, allocations: 5.485 MB / 392.8 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003505/0.2735, allocations: 0.7486 MB / 393.5 MB, free: 1.891 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/0.2746, allocations: 0.9677 MB / 394.5 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/0.2873, allocations: 8.861 MB / 403.3 MB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001449/0.2874, allocations: 15.91 kB / 403.4 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006919/0.2881, allocations: 414.5 kB / 403.8 MB, free: 7.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000393/0.2885, allocations: 0.6072 MB / 404.4 MB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009303/0.2978, allocations: 5.246 MB / 409.6 MB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2658/0.5636, allocations: 40.67 MB / 450.3 MB, free: 62.89 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/0.5757, allocations: 11.47 MB / 461.8 MB, free: 62.5 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001971/0.5776, allocations: 1.548 MB / 463.3 MB, free: 62.45 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00825/0.5859, allocations: 5.906 MB / 469.2 MB, free: 62.02 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.5859, allocations: 62.89 kB / 469.3 MB, free: 61.97 MB / 378.8 MB Notification: Performance of pre-optimization done (n=270): time 4.709e-06/0.5859, allocations: 0 / 469.3 MB, free: 61.97 MB / 378.8 MB Notification: Performance of matching and sorting (n=278): time 0.01285/0.5988, allocations: 7.964 MB / 477.2 MB, free: 60.3 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.5988, allocations: 80.97 kB / 477.3 MB, free: 60.23 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.6026, allocations: 3.919 MB / 481.2 MB, free: 59.75 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.6027, allocations: 72.2 kB / 481.3 MB, free: 59.71 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.6046, allocations: 5.049 MB / 486.4 MB, free: 57.37 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004752/0.6051, allocations: 1.056 MB / 487.4 MB, free: 56.73 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0011/0.6062, allocations: 1.363 MB / 488.8 MB, free: 56.6 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 5.671e-05/0.6063, allocations: 488.5 kB / 489.3 MB, free: 56.12 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.6074, allocations: 0.7973 MB / 490.1 MB, free: 56.11 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002522/0.61, allocations: 5.547 MB / 495.6 MB, free: 50.14 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00449/0.6145, allocations: 7.015 MB / 0.4908 GB, free: 44.08 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.431e-05/0.6145, allocations: 33 kB / 0.4909 GB, free: 44.08 MB / 378.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.006622/0.6211, allocations: 5.615 MB / 0.4963 GB, free: 43.62 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/0.6212, allocations: 54.72 kB / 0.4964 GB, free: 43.62 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.617e-05/0.6212, allocations: 108.3 kB / 0.4965 GB, free: 43.62 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.6228, allocations: 0.8055 MB / 0.4973 GB, free: 43.58 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00219/0.625, allocations: 1.406 MB / 0.4987 GB, free: 43.58 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004308/0.6293, allocations: 4.998 MB / 0.5035 GB, free: 41.43 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/0.6315, allocations: 350.8 kB / 0.5039 GB, free: 41.4 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003095/0.6318, allocations: 356 kB / 0.5042 GB, free: 41.39 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002068/0.6339, allocations: 0.6007 MB / 0.5048 GB, free: 41.16 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004941/0.6344, allocations: 0.492 MB / 0.5053 GB, free: 40.94 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003494/0.6379, allocations: 2.891 MB / 0.5081 GB, free: 40.67 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.6379, allocations: 32.23 kB / 0.5081 GB, free: 40.64 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.6379, allocations: 8 kB / 0.5081 GB, free: 40.64 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.6379, allocations: 14.86 kB / 0.5082 GB, free: 40.64 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.6482, allocations: 9.257 MB / 0.5172 GB, free: 34.38 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.6482, allocations: 4 kB / 0.5172 GB, free: 34.38 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.6493, allocations: 0.513 MB / 0.5177 GB, free: 33.98 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001247/0.6505, allocations: 0.6713 MB / 0.5184 GB, free: 33.5 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.6506, allocations: 59.89 kB / 0.5184 GB, free: 33.44 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003494/0.6541, allocations: 4.528 MB / 0.5228 GB, free: 29.21 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.6541, allocations: 11 kB / 0.5229 GB, free: 29.21 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004012/0.6581, allocations: 3.588 MB / 0.5264 GB, free: 25.87 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008238/0.659, allocations: 0.6807 MB / 0.527 GB, free: 25.26 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/0.6592, allocations: 52 kB / 0.5271 GB, free: 25.21 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007947/0.66, allocations: 164.4 kB / 0.5272 GB, free: 25.1 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002442/0.6602, allocations: 218.9 kB / 0.5274 GB, free: 24.99 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.6604, allocations: 83.61 kB / 0.5275 GB, free: 24.91 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001616/0.662, allocations: 1.713 MB / 0.5292 GB, free: 23.52 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.662, allocations: 4 kB / 0.5292 GB, free: 23.51 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003701/0.6657, allocations: 1.539 MB / 0.5307 GB, free: 21.97 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003382/0.666, allocations: 214.8 kB / 0.5309 GB, free: 21.79 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.003923/0.6699, allocations: 3.785 MB / 0.5346 GB, free: 18.41 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6699, allocations: 4 kB / 0.5346 GB, free: 18.4 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.6714, allocations: 1.562 MB / 0.5361 GB, free: 16.87 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/0.6733, allocations: 0.9146 MB / 0.537 GB, free: 16 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/0.686, allocations: 14.03 MB / 0.5507 GB, free: 1.855 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001761/0.6878, allocations: 2.571 MB / 0.5532 GB, free: 15.26 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.00258/0.6903, allocations: 1.669 MB / 0.5549 GB, free: 13.58 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005661/0.6909, allocations: 316.4 kB / 0.5552 GB, free: 13.27 MB / 394.8 MB Notification: Performance of SimCode: time 1.552e-06/0.6909, allocations: 0 / 0.5552 GB, free: 13.27 MB / 394.8 MB Notification: Performance of Templates: time 0.2019/0.8928, allocations: 52.55 MB / 0.6065 GB, free: 103.8 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.431033594999462]