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.0008969/0.0008969, allocations: 84 kB / 21.43 MB, free: 3.129 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.004109/0.004109, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 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.8465/0.8465, allocations: 173.4 MB / 201.2 MB, free: 9.434 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.202e-06/1.202e-06, allocations: 0 / 319.7 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.059e-05, allocations: 2.281 kB / 319.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01746/0.01748, allocations: 24.62 MB / 344.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01493/0.03241, allocations: 8.096 MB / 352.4 MB, free: 4.961 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004547/0.03696, allocations: 250.8 kB / 352.7 MB, free: 4.715 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009013/0.04597, allocations: 8.056 MB / 360.7 MB, free: 12.63 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007533/0.0535, allocations: 2.899 MB / 363.6 MB, free: 9.723 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00336/0.05686, allocations: 1.849 MB / 365.5 MB, free: 7.879 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.06702, allocations: 10.36 MB / 375.9 MB, free: 13.48 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01519/0.08221, allocations: 13.9 MB / 389.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008602/0.09081, allocations: 8.116 MB / 397.9 MB, free: 7.312 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005656/0.09647, allocations: 5.239 MB / 403.1 MB, free: 2.062 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001826/0.09829, allocations: 1.535 MB / 404.6 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/0.1013, allocations: 1.898 MB / 406.5 MB, free: 14.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.103, allocations: 3.051 MB / 409.6 MB, free: 11.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005836/0.1089, allocations: 3.918 MB / 413.5 MB, free: 7.645 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01652/0.1254, allocations: 20.9 MB / 434.4 MB, free: 2.684 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1254, allocations: 0 / 434.4 MB, free: 2.684 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1254, allocations: 0 / 434.4 MB, free: 2.684 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004263/0.1258, allocations: 4 kB / 434.4 MB, free: 2.68 MB / 394.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.01969/0.1455, allocations: 11.89 MB / 446.3 MB, free: 6.703 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.1456, allocations: 8.922 kB / 446.3 MB, free: 6.695 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01428/0.1599, allocations: 5.687 MB / 452 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2965/0.4564, allocations: 6.352 MB / 458.4 MB, free: 106.4 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003857/0.4568, allocations: 0.7013 MB / 459.1 MB, free: 106.1 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001467/0.4582, allocations: 0.94 MB / 460 MB, free: 105.8 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/0.4742, allocations: 15.21 MB / 475.2 MB, free: 94.59 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001354/0.4743, allocations: 15.91 kB / 475.2 MB, free: 94.57 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000586/0.4749, allocations: 392.8 kB / 475.6 MB, free: 94.2 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002358/0.4751, allocations: 0.5155 MB / 476.1 MB, free: 93.68 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/0.4881, allocations: 13.68 MB / 489.8 MB, free: 79.97 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03255/0.5207, allocations: 41.31 MB / 0.5187 GB, free: 38.35 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006756/0.5274, allocations: 7.952 MB / 0.5264 GB, free: 31.66 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002134/0.5296, allocations: 2.792 MB / 0.5292 GB, free: 28.86 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001699/0.5297, allocations: 78.95 kB / 0.5292 GB, free: 28.78 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.5298, allocations: 73.58 kB / 0.5293 GB, free: 28.7 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 5.841e-06/0.5298, allocations: 3.812 kB / 0.5293 GB, free: 28.7 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.01529/0.5451, allocations: 14.65 MB / 0.5436 GB, free: 14.19 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.5451, allocations: 90.48 kB / 0.5437 GB, free: 14.09 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002818/0.5479, allocations: 3.551 MB / 0.5472 GB, free: 10.54 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.5481, allocations: 85.7 kB / 0.5473 GB, free: 10.45 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009389/0.549, allocations: 4.171 MB / 0.5513 GB, free: 6.266 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004582/0.5494, allocations: 1.392 MB / 0.5527 GB, free: 4.895 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008891/0.5503, allocations: 1.164 MB / 0.5538 GB, free: 3.719 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.387e-05/0.5504, allocations: 301.1 kB / 0.5541 GB, free: 3.422 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/0.5523, allocations: 2.588 MB / 0.5566 GB, free: 0.8281 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003598/0.5559, allocations: 5.1 MB / 0.5616 GB, free: 10.55 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006627/0.5626, allocations: 8.333 MB / 0.5698 GB, free: 1.027 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.927e-05/0.5626, allocations: 31.94 kB / 0.5698 GB, free: 0.9961 MB / 426.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.008811/0.5714, allocations: 8.607 MB / 0.5782 GB, free: 8.352 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.432e-05/0.5715, allocations: 40 kB / 0.5782 GB, free: 8.312 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-05/0.5715, allocations: 84 kB / 0.5783 GB, free: 8.23 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.5728, allocations: 0.8358 MB / 0.5791 GB, free: 7.395 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002229/0.575, allocations: 1.365 MB / 0.5805 GB, free: 6.027 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006665/0.5817, allocations: 7.351 MB / 0.5876 GB, free: 14.57 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/0.5837, allocations: 331.5 kB / 0.588 GB, free: 14.25 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002713/0.584, allocations: 304.1 kB / 0.5882 GB, free: 13.95 MB / 458.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.004176/0.5882, allocations: 3.509 MB / 0.5917 GB, free: 10.43 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000569/0.5888, allocations: 413.4 kB / 0.5921 GB, free: 10.02 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/0.5947, allocations: 5.953 MB / 0.5979 GB, free: 4.031 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.5947, allocations: 40 kB / 0.5979 GB, free: 3.992 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.5947, allocations: 8 kB / 0.5979 GB, free: 3.984 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.978e-05/0.5947, allocations: 19.92 kB / 0.5979 GB, free: 3.965 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/0.6087, allocations: 13 MB / 0.6106 GB, free: 6.926 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.6088, allocations: 4 kB / 0.6106 GB, free: 6.922 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.6101, allocations: 0.6904 MB / 0.6113 GB, free: 6.23 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.6112, allocations: 0.6977 MB / 0.612 GB, free: 5.531 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/0.6113, allocations: 83.98 kB / 0.6121 GB, free: 5.449 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1946/0.806, allocations: 6.389 MB / 0.6183 GB, free: 149.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.377e-06/0.806, allocations: 7.812 kB / 0.6183 GB, free: 149.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008228/0.8142, allocations: 8.703 MB / 0.6268 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001311/0.8155, allocations: 0.8233 MB / 0.6276 GB, free: 147.3 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.8158, allocations: 79.05 kB / 0.6277 GB, free: 147.3 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009014/0.8167, allocations: 176.5 kB / 0.6279 GB, free: 147.2 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/0.817, allocations: 291.7 kB / 0.6282 GB, free: 147.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.8171, allocations: 108.8 kB / 0.6283 GB, free: 147.2 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.002112/0.8192, allocations: 2.284 MB / 0.6305 GB, free: 146.3 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.4e-07/0.8192, allocations: 0 / 0.6305 GB, free: 146.3 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.003582/0.8228, allocations: 1.54 MB / 0.632 GB, free: 146.2 MB / 474.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.0004219/0.8232, allocations: 268.6 kB / 0.6322 GB, free: 146 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.00565/0.8289, allocations: 6.252 MB / 0.6384 GB, free: 143.7 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.8289, allocations: 4 kB / 0.6384 GB, free: 143.7 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00233/0.8312, allocations: 2.727 MB / 0.641 GB, free: 142.6 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.8334, allocations: 0.8875 MB / 0.6419 GB, free: 142.3 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/0.8499, allocations: 15.71 MB / 0.6572 GB, free: 128.3 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003321/0.8532, allocations: 5.343 MB / 0.6624 GB, free: 124.3 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.8543, allocations: 382.8 kB / 0.6628 GB, free: 123.9 MB / 474.8 MB Notification: Performance of SimCode: time 2.344e-06/0.8543, allocations: 0 / 0.6628 GB, free: 123.9 MB / 474.8 MB Notification: Performance of Templates: time 0.2979/1.152, allocations: 153.8 MB / 0.813 GB, free: 161.6 MB / 490.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.253496803343296]