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.0007987/0.0007987, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0008863/0.0008863, allocations: 147 kB / 25.6 MB, free: 8.93 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.8628/0.8628, allocations: 173.4 MB / 202.2 MB, free: 8.297 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.834e-06/1.834e-06, allocations: 4 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.103e-05/1.287e-05, allocations: 5.406 kB / 269.3 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02003/0.02004, allocations: 26.76 MB / 296 MB, free: 14.92 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.03315, allocations: 8.273 MB / 304.3 MB, free: 6.637 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002647/0.0358, allocations: 254.7 kB / 304.5 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008365/0.04416, allocations: 8.457 MB / 313 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004739/0.0489, allocations: 2.901 MB / 315.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.05129, allocations: 1.84 MB / 317.7 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006799/0.05808, allocations: 10.37 MB / 328.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01225/0.07033, allocations: 13.92 MB / 342 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1211/0.1915, allocations: 8.246 MB / 350.3 MB, free: 25.52 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007177/0.1986, allocations: 5.891 MB / 356.2 MB, free: 25.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002459/0.2011, allocations: 1.538 MB / 357.7 MB, free: 25.52 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002412/0.2035, allocations: 1.893 MB / 359.6 MB, free: 25.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001557/0.2051, allocations: 3.085 MB / 362.7 MB, free: 25.52 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002993/0.2081, allocations: 3.955 MB / 366.6 MB, free: 25.39 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006351/0.2144, allocations: 9.881 MB / 376.5 MB, free: 21.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2144, allocations: 0 / 376.5 MB, free: 21.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2144, allocations: 2.75 kB / 376.5 MB, free: 21.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001429/0.2146, allocations: 0 / 376.5 MB, free: 21.36 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.01486/0.2294, allocations: 12.23 MB / 388.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.2295, allocations: 12.03 kB / 388.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01364/0.2431, allocations: 5.463 MB / 394.2 MB, free: 6.711 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005915/0.249, allocations: 5.641 MB / 399.9 MB, free: 1.285 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.2493, allocations: 0.702 MB / 400.6 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009422/0.2502, allocations: 0.9245 MB / 401.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/0.2602, allocations: 7.459 MB / 409 MB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001643/0.2604, allocations: 22.53 kB / 409 MB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006569/0.261, allocations: 390.5 kB / 409.4 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003498/0.2614, allocations: 0.5161 MB / 409.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0056/0.267, allocations: 3.415 MB / 413.3 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04188/0.3089, allocations: 38.09 MB / 451.4 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007616/0.3165, allocations: 5.995 MB / 457.4 MB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/0.3182, allocations: 1.193 MB / 458.6 MB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002101/0.3184, allocations: 98.97 kB / 458.7 MB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.28e-05/0.3184, allocations: 76.41 kB / 458.7 MB, free: 9.043 MB / 378.7 MB Notification: Performance of pre-optimization done (n=384): time 7.133e-06/0.3185, allocations: 0 / 458.7 MB, free: 9.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=392): time 0.01553/0.334, allocations: 7.147 MB / 465.9 MB, free: 1.926 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.334, allocations: 94.48 kB / 466 MB, free: 1.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003973/0.338, allocations: 3.346 MB / 469.3 MB, free: 14.95 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.3382, allocations: 97.64 kB / 469.4 MB, free: 14.85 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002477/0.3407, allocations: 4.437 MB / 473.9 MB, free: 10.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001224/0.3419, allocations: 1.45 MB / 475.3 MB, free: 9.168 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/0.3435, allocations: 1.32 MB / 476.6 MB, free: 7.949 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3436, allocations: 484.2 kB / 477.1 MB, free: 7.477 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.3447, allocations: 0.6401 MB / 477.7 MB, free: 6.832 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003354/0.3481, allocations: 4.416 MB / 482.2 MB, free: 0.9844 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005339/0.3534, allocations: 5.707 MB / 487.9 MB, free: 10.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.084e-05/0.3535, allocations: 27.98 kB / 487.9 MB, free: 10.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.007285/0.3608, allocations: 4.797 MB / 492.7 MB, free: 5.859 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.718e-05/0.3608, allocations: 42.66 kB / 492.7 MB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.209e-05/0.3609, allocations: 84.84 kB / 492.8 MB, free: 5.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/0.3623, allocations: 0.7679 MB / 493.6 MB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/0.3648, allocations: 1.277 MB / 494.9 MB, free: 3.801 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1316/0.4964, allocations: 4.823 MB / 499.7 MB, free: 95.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002839/0.4992, allocations: 249.1 kB / 499.9 MB, free: 95.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005706/0.4998, allocations: 254.9 kB / 0.4884 GB, free: 95.44 MB / 410.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.002033/0.5018, allocations: 0.5669 MB / 0.489 GB, free: 95.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007946/0.5026, allocations: 0.5247 MB / 0.4895 GB, free: 95.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00407/0.5067, allocations: 3.043 MB / 0.4925 GB, free: 95.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/0.5067, allocations: 38.5 kB / 0.4925 GB, free: 95.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.5067, allocations: 12.27 kB / 0.4925 GB, free: 95.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.5067, allocations: 18 kB / 0.4925 GB, free: 95.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/0.5178, allocations: 8.327 MB / 0.5007 GB, free: 94.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.5178, allocations: 9.375 kB / 0.5007 GB, free: 94.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.5191, allocations: 0.6085 MB / 0.5013 GB, free: 94.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.5204, allocations: 0.6294 MB / 0.5019 GB, free: 94.26 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001683/0.5206, allocations: 89.95 kB / 0.502 GB, free: 94.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003591/0.5242, allocations: 4.326 MB / 0.5062 GB, free: 92.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5242, allocations: 11.45 kB / 0.5062 GB, free: 92.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004632/0.5288, allocations: 3.82 MB / 0.51 GB, free: 91.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001311/0.5301, allocations: 0.6948 MB / 0.5106 GB, free: 91.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003443/0.5304, allocations: 74.19 kB / 0.5107 GB, free: 91.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008511/0.5313, allocations: 104.5 kB / 0.5108 GB, free: 91.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/0.5316, allocations: 278.5 kB / 0.5111 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/0.5318, allocations: 88.03 kB / 0.5111 GB, free: 91.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001469/0.5332, allocations: 1.426 MB / 0.5125 GB, free: 90.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5332, allocations: 0 / 0.5125 GB, free: 90.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003906/0.5371, allocations: 1.535 MB / 0.514 GB, free: 90.99 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.0004323/0.5376, allocations: 260.5 kB / 0.5143 GB, free: 90.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004451/0.542, allocations: 3.523 MB / 0.5177 GB, free: 90.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.542, allocations: 0 / 0.5177 GB, free: 90.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/0.5439, allocations: 1.708 MB / 0.5194 GB, free: 90.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003295/0.5472, allocations: 0.9085 MB / 0.5203 GB, free: 90.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01975/0.567, allocations: 13.31 MB / 0.5333 GB, free: 84.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002602/0.5696, allocations: 2.473 MB / 0.5357 GB, free: 83.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002543/0.5721, allocations: 0.6738 MB / 0.5364 GB, free: 83.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/0.574, allocations: 0.9932 MB / 0.5373 GB, free: 82.4 MB / 410.7 MB Notification: Performance of SimCode: time 2.014e-06/0.574, allocations: 6.297 kB / 0.5373 GB, free: 82.39 MB / 410.7 MB Notification: Performance of Templates: time 0.08675/0.6607, allocations: 60.32 MB / 0.5962 GB, free: 26.94 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.434918920043856]