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.001171/0.001171, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001562/0.001562, allocations: 170 kB / 25.61 MB, free: 8.859 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.894/0.894, allocations: 177.1 MB / 206 MB, free: 4.531 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 2.124e-06/2.124e-06, allocations: 0 / 274.2 MB, free: 4.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.724e-05/1.937e-05, allocations: 2.312 kB / 274.2 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02038/0.0204, allocations: 26.82 MB / 301 MB, free: 9.453 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.03232, allocations: 8.349 MB / 309.4 MB, free: 1.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.03459, allocations: 250.8 kB / 309.6 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008137/0.04272, allocations: 8.461 MB / 318.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00418/0.0469, allocations: 2.897 MB / 321 MB, free: 5.426 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002357/0.04926, allocations: 1.88 MB / 322.9 MB, free: 3.543 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007432/0.05669, allocations: 10.43 MB / 333.3 MB, free: 9.07 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1573/0.214, allocations: 13.91 MB / 347.2 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00892/0.2229, allocations: 8.251 MB / 355.5 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006224/0.2291, allocations: 5.916 MB / 361.4 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002474/0.2316, allocations: 1.536 MB / 362.9 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001913/0.2335, allocations: 1.912 MB / 364.8 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001433/0.2349, allocations: 3.084 MB / 367.9 MB, free: 21.04 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003899/0.2388, allocations: 3.953 MB / 371.9 MB, free: 19.49 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00672/0.2455, allocations: 9.904 MB / 381.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2455, allocations: 0 / 381.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2455, allocations: 0 / 381.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001457/0.2457, allocations: 0.625 kB / 381.8 MB, free: 13.6 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.01425/0.2599, allocations: 12.27 MB / 394 MB, free: 2.434 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.26, allocations: 11.98 kB / 394.1 MB, free: 2.422 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01393/0.2739, allocations: 5.417 MB / 399.5 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006279/0.2802, allocations: 5.646 MB / 405.1 MB, free: 7.637 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004893/0.2807, allocations: 0.708 MB / 405.8 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/0.2817, allocations: 0.9237 MB / 406.8 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01096/0.2927, allocations: 7.495 MB / 414.3 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001567/0.2928, allocations: 16.03 kB / 414.3 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006692/0.2935, allocations: 392.7 kB / 414.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003533/0.2938, allocations: 0.5155 MB / 415.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00569/0.2995, allocations: 3.45 MB / 418.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04422/0.3438, allocations: 38.15 MB / 456.8 MB, free: 5.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006901/0.3507, allocations: 6.019 MB / 462.8 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.3522, allocations: 1.2 MB / 464 MB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002849/0.3525, allocations: 116.2 kB / 464.1 MB, free: 15.31 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.244e-05/0.3526, allocations: 76.39 kB / 464.2 MB, free: 15.22 MB / 394.7 MB Notification: Performance of pre-optimization done (n=384): time 8.025e-06/0.3526, allocations: 0 / 464.2 MB, free: 15.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=392): time 0.01322/0.3658, allocations: 7.184 MB / 471.4 MB, free: 8.055 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.3659, allocations: 90.48 kB / 471.4 MB, free: 7.953 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/0.3695, allocations: 3.361 MB / 474.8 MB, free: 5.074 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002572/0.3697, allocations: 85.7 kB / 474.9 MB, free: 4.984 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002292/0.372, allocations: 4.442 MB / 479.3 MB, free: 0.668 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/0.373, allocations: 1.45 MB / 480.8 MB, free: 15.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.3743, allocations: 1.326 MB / 482.1 MB, free: 14.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3744, allocations: 487.5 kB / 482.6 MB, free: 13.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008945/0.3753, allocations: 0.6472 MB / 483.2 MB, free: 12.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00268/0.378, allocations: 4.421 MB / 487.6 MB, free: 7.094 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004606/0.3826, allocations: 5.726 MB / 493.4 MB, free: 248 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.788e-05/0.3826, allocations: 24 kB / 493.4 MB, free: 224 kB / 410.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.2986/0.6813, allocations: 4.81 MB / 498.2 MB, free: 91.7 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/0.6813, allocations: 41.44 kB / 498.2 MB, free: 91.7 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.848e-05/0.6814, allocations: 85.06 kB / 498.3 MB, free: 91.7 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/0.683, allocations: 0.7632 MB / 499.1 MB, free: 91.67 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002501/0.6855, allocations: 1.283 MB / 0.4886 GB, free: 91.67 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004439/0.69, allocations: 4.833 MB / 0.4934 GB, free: 89.64 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002475/0.6924, allocations: 239.7 kB / 0.4936 GB, free: 89.63 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000321/0.6928, allocations: 262.3 kB / 0.4938 GB, free: 89.63 MB / 410.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.001862/0.6946, allocations: 0.5705 MB / 0.4944 GB, free: 89.46 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006675/0.6953, allocations: 0.5251 MB / 0.4949 GB, free: 89.39 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003601/0.6989, allocations: 3.038 MB / 0.4979 GB, free: 89.14 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.6989, allocations: 43.28 kB / 0.4979 GB, free: 89.14 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.6989, allocations: 14.47 kB / 0.4979 GB, free: 89.13 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/0.6989, allocations: 18.14 kB / 0.498 GB, free: 89.13 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.7102, allocations: 8.343 MB / 0.5061 GB, free: 88.24 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.7102, allocations: 7.406 kB / 0.5061 GB, free: 88.24 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.7115, allocations: 0.6167 MB / 0.5067 GB, free: 88.24 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.7128, allocations: 0.6368 MB / 0.5073 GB, free: 88.19 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/0.7129, allocations: 96.62 kB / 0.5074 GB, free: 88.19 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003297/0.7162, allocations: 4.317 MB / 0.5116 GB, free: 86.12 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.7162, allocations: 11.69 kB / 0.5117 GB, free: 86.12 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004133/0.7203, allocations: 3.845 MB / 0.5154 GB, free: 85.18 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/0.7214, allocations: 0.6987 MB / 0.5161 GB, free: 84.96 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002852/0.7216, allocations: 73.34 kB / 0.5162 GB, free: 84.96 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007787/0.7224, allocations: 97.53 kB / 0.5163 GB, free: 84.96 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003432/0.7228, allocations: 281.8 kB / 0.5165 GB, free: 84.95 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.7229, allocations: 87.84 kB / 0.5166 GB, free: 84.95 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001227/0.7241, allocations: 1.433 MB / 0.518 GB, free: 84.76 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7241, allocations: 4.031 kB / 0.518 GB, free: 84.76 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.003674/0.7278, allocations: 1.545 MB / 0.5195 GB, free: 84.76 MB / 410.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.0004109/0.7282, allocations: 262.7 kB / 0.5198 GB, free: 84.67 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.004239/0.7324, allocations: 3.526 MB / 0.5232 GB, free: 84.26 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.7325, allocations: 0 / 0.5232 GB, free: 84.26 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001762/0.7342, allocations: 1.716 MB / 0.5249 GB, free: 83.96 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/0.7366, allocations: 0.9316 MB / 0.5258 GB, free: 83.61 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.7522, allocations: 13.28 MB / 0.5388 GB, free: 72.78 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001813/0.754, allocations: 2.479 MB / 0.5412 GB, free: 71.55 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.002021/0.7561, allocations: 0.6693 MB / 0.5418 GB, free: 71.03 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001455/0.7575, allocations: 1.012 MB / 0.5428 GB, free: 70.19 MB / 410.8 MB Notification: Performance of SimCode: time 2.415e-06/0.7575, allocations: 0 / 0.5428 GB, free: 70.19 MB / 410.8 MB Notification: Performance of Templates: time 0.07736/0.8349, allocations: 61.05 MB / 0.6024 GB, free: 11.56 MB / 410.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.752564244903624]