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.001859/0.001859, allocations: 92.47 kB / 20.78 MB, free: 0.707 MB / 14.72 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.001338/0.001338, allocations: 154.8 kB / 24.06 MB, free: 3.848 MB / 14.72 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 1.403/1.403, allocations: 173.3 MB / 200.6 MB, free: 12.81 MB / 190.1 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.633e-06/1.633e-06, allocations: 0 / 319.2 MB, free: 3.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.062e-05, allocations: 2.281 kB / 319.2 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02868/0.0287, allocations: 24.61 MB / 343.8 MB, free: 2.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01828/0.04698, allocations: 8.11 MB / 351.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006892/0.05387, allocations: 250.8 kB / 352.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02014/0.07402, allocations: 8.033 MB / 360.2 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00982/0.08384, allocations: 2.885 MB / 363.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005506/0.08934, allocations: 1.835 MB / 364.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0144/0.1037, allocations: 10.37 MB / 375.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02452/0.1283, allocations: 13.9 MB / 389.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01428/0.1425, allocations: 8.116 MB / 397.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00962/0.1522, allocations: 5.243 MB / 402.5 MB, free: 7.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003261/0.1554, allocations: 1.539 MB / 404.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004858/0.1603, allocations: 1.909 MB / 406 MB, free: 4.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003713/0.164, allocations: 3.039 MB / 409 MB, free: 1.363 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006191/0.1702, allocations: 3.914 MB / 412.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02268/0.1929, allocations: 20.91 MB / 433.8 MB, free: 8.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1929, allocations: 0 / 433.8 MB, free: 8.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1929, allocations: 0 / 433.8 MB, free: 8.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003629/0.1932, allocations: 0 / 433.8 MB, free: 8.473 MB / 398.1 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.03284/0.2261, allocations: 11.88 MB / 445.7 MB, free: 12.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2261, allocations: 8.031 kB / 445.7 MB, free: 12.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03206/0.2582, allocations: 5.687 MB / 451.4 MB, free: 6.793 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/0.2726, allocations: 6.633 MB / 458 MB, free: 96 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007089/0.2734, allocations: 0.6987 MB / 458.7 MB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003041/0.2764, allocations: 0.9295 MB / 459.7 MB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2938/0.5702, allocations: 15.21 MB / 474.9 MB, free: 112.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002818/0.5705, allocations: 17.42 kB / 474.9 MB, free: 112.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001311/0.5718, allocations: 390.9 kB / 475.3 MB, free: 112.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005314/0.5724, allocations: 0.5141 MB / 475.8 MB, free: 112.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/0.5984, allocations: 13.69 MB / 489.5 MB, free: 107.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04976/0.6482, allocations: 42.44 MB / 0.5195 GB, free: 77.94 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.6596, allocations: 8.005 MB / 0.5273 GB, free: 71.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003387/0.663, allocations: 2.796 MB / 0.53 GB, free: 68.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002507/0.6633, allocations: 73.94 kB / 0.5301 GB, free: 68.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/0.6633, allocations: 78.89 kB / 0.5302 GB, free: 68.24 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 6.382e-06/0.6633, allocations: 0 / 0.5302 GB, free: 68.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02331/0.6866, allocations: 14.65 MB / 0.5445 GB, free: 53.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.6867, allocations: 98.42 kB / 0.5446 GB, free: 53.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003566/0.6902, allocations: 3.553 MB / 0.548 GB, free: 50.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001935/0.6904, allocations: 89.7 kB / 0.5481 GB, free: 50.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001361/0.6918, allocations: 4.173 MB / 0.5522 GB, free: 46.22 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006415/0.6924, allocations: 1.389 MB / 0.5535 GB, free: 44.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001311/0.6937, allocations: 1.152 MB / 0.5547 GB, free: 43.69 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 2.933e-05/0.6938, allocations: 309 kB / 0.555 GB, free: 43.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00285/0.6966, allocations: 2.592 MB / 0.5575 GB, free: 40.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003691/0.7003, allocations: 5.112 MB / 0.5625 GB, free: 34.49 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007146/0.7074, allocations: 8.329 MB / 0.5706 GB, free: 24.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.512e-05/0.7075, allocations: 24 kB / 0.5706 GB, free: 24.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01091/0.7184, allocations: 8.607 MB / 0.579 GB, free: 16.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.7184, allocations: 40 kB / 0.5791 GB, free: 16.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.187e-05/0.7185, allocations: 84 kB / 0.5792 GB, free: 16.19 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/0.7205, allocations: 0.8318 MB / 0.58 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/0.7244, allocations: 1.365 MB / 0.5813 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008393/0.7328, allocations: 7.351 MB / 0.5885 GB, free: 6.539 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00368/0.7365, allocations: 331.5 kB / 0.5888 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005264/0.737, allocations: 308 kB / 0.5891 GB, free: 5.914 MB / 430.1 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.004151/0.7412, allocations: 3.505 MB / 0.5925 GB, free: 2.395 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007859/0.742, allocations: 421.3 kB / 0.5929 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/0.752, allocations: 5.95 MB / 0.5987 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-05/0.752, allocations: 40 kB / 0.5988 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/0.752, allocations: 11.94 kB / 0.5988 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.014e-05/0.7521, allocations: 19.92 kB / 0.5988 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0234/0.7755, allocations: 13.02 MB / 0.6115 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.912e-05/0.7755, allocations: 12.12 kB / 0.6115 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002868/0.7784, allocations: 0.6865 MB / 0.6122 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002113/0.7805, allocations: 0.6934 MB / 0.6129 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/0.7807, allocations: 91.98 kB / 0.613 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.7908, allocations: 6.389 MB / 0.6192 GB, free: 6.887 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.7908, allocations: 11.94 kB / 0.6192 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/0.8059, allocations: 8.699 MB / 0.6277 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/0.8081, allocations: 0.8252 MB / 0.6285 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005306/0.8086, allocations: 83.94 kB / 0.6286 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001919/0.8106, allocations: 175.8 kB / 0.6288 GB, free: 12.97 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005966/0.8112, allocations: 282.5 kB / 0.629 GB, free: 12.69 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000249/0.8114, allocations: 112 kB / 0.6291 GB, free: 12.58 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003582/0.815, allocations: 2.279 MB / 0.6314 GB, free: 10.31 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.815, allocations: 0 / 0.6314 GB, free: 10.31 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004968/0.82, allocations: 1.547 MB / 0.6329 GB, free: 8.766 MB / 478.1 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.000544/0.8205, allocations: 262.3 kB / 0.6331 GB, free: 8.504 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01046/0.831, allocations: 6.26 MB / 0.6392 GB, free: 2.242 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/0.831, allocations: 4.438 kB / 0.6392 GB, free: 2.238 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1486/0.9796, allocations: 2.719 MB / 0.6419 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004494/0.9841, allocations: 0.8879 MB / 0.6428 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02633/1.01, allocations: 15.96 MB / 0.6583 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005406/1.016, allocations: 5.518 MB / 0.6637 GB, free: 144 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004156/1.02, allocations: 1.863 MB / 0.6656 GB, free: 143.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009911/1.021, allocations: 346.3 kB / 0.6659 GB, free: 143.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/1.021, allocations: 0 / 0.6659 GB, free: 143.9 MB / 478.1 MB Notification: Performance of Templates: time 0.08371/1.105, allocations: 54.44 MB / 0.719 GB, free: 99.73 MB / 478.1 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: 7.229147914797068]