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.0009648/0.0009648, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001195/0.00216, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0007985/0.0007985, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009898/0.001788, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8899/0.8899, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1537/1.044, allocations: 52.49 MB / 238.5 MB, free: 7.609 MB / 234.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.833e-06/1.833e-06, allocations: 0 / 239.8 MB, free: 6.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.861e-05, allocations: 2.312 kB / 239.8 MB, free: 6.328 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03055/0.03058, allocations: 27.03 MB / 266.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.04582, allocations: 8.781 MB / 275.6 MB, free: 2.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004103/0.04992, allocations: 250.8 kB / 275.8 MB, free: 2.164 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009142/0.05907, allocations: 8.651 MB / 284.5 MB, free: 9.473 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006981/0.06605, allocations: 2.905 MB / 287.4 MB, free: 6.551 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003236/0.06928, allocations: 1.865 MB / 289.2 MB, free: 4.684 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009189/0.07847, allocations: 10.43 MB / 299.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01388/0.09235, allocations: 13.97 MB / 313.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008263/0.1006, allocations: 8.546 MB / 322.2 MB, free: 3.484 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1389/0.2395, allocations: 5.948 MB / 328.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00466/0.2442, allocations: 1.535 MB / 329.7 MB, free: 20.52 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006802/0.251, allocations: 1.905 MB / 331.6 MB, free: 20.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002063/0.253, allocations: 2.449 MB / 334 MB, free: 20.52 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004075/0.2571, allocations: 3.307 MB / 337.3 MB, free: 20.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006827/0.2639, allocations: 9.333 MB / 346.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-05/0.2639, allocations: 0 / 346.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2639, allocations: 4.688 kB / 346.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002293/0.2642, allocations: 0 / 346.7 MB, free: 19.85 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.01648/0.2807, allocations: 13.38 MB / 360.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.2807, allocations: 8.75 kB / 360.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01346/0.2942, allocations: 5.667 MB / 365.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005414/0.2996, allocations: 3.319 MB / 369 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002931/0.2999, allocations: 0.7018 MB / 369.8 MB, free: 9.676 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009753/0.3008, allocations: 0.9299 MB / 370.7 MB, free: 8.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007945/0.3088, allocations: 7.631 MB / 378.3 MB, free: 2.441 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001333/0.3089, allocations: 14.59 kB / 378.3 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006151/0.3095, allocations: 395.3 kB / 378.7 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002487/0.3098, allocations: 0.4921 MB / 379.2 MB, free: 1.559 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004866/0.3147, allocations: 3.833 MB / 383 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02845/0.3431, allocations: 29.52 MB / 412.6 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004769/0.3479, allocations: 4.55 MB / 417.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.349, allocations: 1.042 MB / 418.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002166/0.3492, allocations: 107.1 kB / 418.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.3492, allocations: 81.58 kB / 418.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=384): time 5.951e-06/0.3492, allocations: 0 / 418.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=392): time 0.01232/0.3616, allocations: 7.048 MB / 425.4 MB, free: 4.426 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.3616, allocations: 94.47 kB / 425.5 MB, free: 4.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002002/0.3636, allocations: 2.448 MB / 427.9 MB, free: 2.363 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.3638, allocations: 89.7 kB / 428 MB, free: 2.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/0.3655, allocations: 3.84 MB / 431.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006671/0.3662, allocations: 1.396 MB / 433.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001018/0.3672, allocations: 1.079 MB / 434.3 MB, free: 12.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.158e-05/0.3673, allocations: 304.9 kB / 434.6 MB, free: 11.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007212/0.368, allocations: 0.5594 MB / 435.2 MB, free: 11.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/0.3701, allocations: 3.097 MB / 438.3 MB, free: 7.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003656/0.3737, allocations: 4.688 MB / 443 MB, free: 1.918 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.462e-05/0.3737, allocations: 24 kB / 443 MB, free: 1.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.004477/0.3782, allocations: 3.87 MB / 446.9 MB, free: 14.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.495e-05/0.3783, allocations: 44.16 kB / 446.9 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.443e-05/0.3783, allocations: 84 kB / 447 MB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.3797, allocations: 0.7354 MB / 447.7 MB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002719/0.3824, allocations: 1.439 MB / 449.2 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003696/0.3861, allocations: 3.729 MB / 452.9 MB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/0.3881, allocations: 252.5 kB / 453.1 MB, free: 8.434 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/0.3884, allocations: 248 kB / 453.4 MB, free: 8.191 MB / 394.7 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.001717/0.3901, allocations: 0.5195 MB / 453.9 MB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005413/0.3906, allocations: 359.6 kB / 454.2 MB, free: 7.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003281/0.3939, allocations: 2.517 MB / 456.8 MB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.3939, allocations: 42.81 kB / 456.8 MB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3939, allocations: 8 kB / 456.8 MB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-05/0.3939, allocations: 23.92 kB / 456.8 MB, free: 4.828 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008686/0.4026, allocations: 6.712 MB / 463.6 MB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.4026, allocations: 4 kB / 463.6 MB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001692/0.4043, allocations: 0.6973 MB / 464.3 MB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008781/0.4052, allocations: 496.1 kB / 464.7 MB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.4065, allocations: 0.6008 MB / 465.3 MB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.4066, allocations: 79.97 kB / 465.4 MB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003154/0.4097, allocations: 3.336 MB / 468.8 MB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/0.4097, allocations: 6.844 kB / 468.8 MB, free: 9.539 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003775/0.4135, allocations: 3.107 MB / 471.9 MB, free: 6.406 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003484/0.4139, allocations: 83.92 kB / 471.9 MB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008075/0.4147, allocations: 91.98 kB / 472 MB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/0.415, allocations: 270.2 kB / 472.3 MB, free: 5.973 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/0.4151, allocations: 79.98 kB / 472.4 MB, free: 5.895 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009803/0.4161, allocations: 1.102 MB / 473.5 MB, free: 4.934 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4161, allocations: 0 / 473.5 MB, free: 4.934 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003567/0.4197, allocations: 1.539 MB / 475 MB, free: 3.395 MB / 410.7 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.0003818/0.42, allocations: 247.2 kB / 475.3 MB, free: 3.188 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003412/0.4235, allocations: 3.139 MB / 478.4 MB, free: 400 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001489/0.4236, allocations: 99.55 kB / 478.5 MB, free: 296 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.106/0.5296, allocations: 1.723 MB / 480.2 MB, free: 115.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003782/0.5333, allocations: 7.489 MB / 487.7 MB, free: 108.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05107/0.5844, allocations: 13.44 MB / 0.4894 GB, free: 103.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001433/0.5858, allocations: 1.781 MB / 0.4911 GB, free: 103.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001906/0.5878, allocations: 0.682 MB / 0.4918 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/0.5892, allocations: 0.889 MB / 0.4927 GB, free: 103 MB / 410.7 MB Notification: Performance of SimCode: time 2.314e-06/0.5892, allocations: 0.9688 kB / 0.4927 GB, free: 103 MB / 410.7 MB Notification: Performance of Templates: time 0.07471/0.6639, allocations: 62.72 MB / 0.5539 GB, free: 55.86 MB / 410.7 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8733088644221425]