Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 107.4 kB / 17.16 MB, free: 6.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001948/0.001948, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 47.92 kB / 280 MB, free: 3.562 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08463/0.08586, allocations: 46.63 MB / 326.6 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02923/0.1151, allocations: 28.68 MB / 355.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.016/0.1312, allocations: 8.463 MB / 363.8 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00477/0.136, allocations: 175.4 kB / 363.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01773/0.1538, allocations: 7.748 MB / 371.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01069/0.1645, allocations: 2.781 MB / 374.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005991/0.1705, allocations: 1.77 MB / 376.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1708/0.3413, allocations: 10.57 MB / 386.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02405/0.3654, allocations: 17.91 MB / 404.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006336/0.3717, allocations: 4.871 MB / 409.6 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007712/0.3795, allocations: 6.103 MB / 415.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002971/0.3825, allocations: 1.062 MB / 416.8 MB, free: 28 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0113/0.3938, allocations: 1.96 MB / 418.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003919/0.3977, allocations: 2.652 MB / 421.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01001/0.4077, allocations: 5.57 MB / 426.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02232/0.4301, allocations: 20.73 MB / 447.7 MB, free: 3.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.4301, allocations: 4 kB / 447.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4301, allocations: 0 / 447.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005092/0.4307, allocations: 0 / 447.7 MB, free: 3.559 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03695/0.4676, allocations: 12.48 MB / 460.2 MB, free: 7.078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.4677, allocations: 8.031 kB / 460.2 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04525/0.5129, allocations: 8.579 MB / 468.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.5254, allocations: 5.883 MB / 474.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008051/0.5262, allocations: 0.7505 MB / 475.4 MB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004276/0.5305, allocations: 0.9828 MB / 476.4 MB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04609/0.5766, allocations: 16.57 MB / 492.9 MB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005947/0.5773, allocations: 19.36 kB / 492.9 MB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003615/0.5809, allocations: 416.3 kB / 493.4 MB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007493/0.5817, allocations: 0.6067 MB / 494 MB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03424/0.6159, allocations: 15.96 MB / 0.498 GB, free: 5.621 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3649/0.9809, allocations: 52.1 MB / 0.5488 GB, free: 122.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02713/1.008, allocations: 52.26 MB / 0.5999 GB, free: 72.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0057/1.014, allocations: 3.464 MB / 0.6033 GB, free: 72.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0163/1.03, allocations: 9.412 MB / 0.6125 GB, free: 69.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/1.03, allocations: 68.11 kB / 0.6125 GB, free: 69.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.02e-06/1.03, allocations: 0 / 0.6125 GB, free: 69.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02449/1.055, allocations: 12.87 MB / 0.6251 GB, free: 62.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/1.055, allocations: 80.03 kB / 0.6252 GB, free: 62.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006306/1.061, allocations: 4.068 MB / 0.6291 GB, free: 60.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000475/1.062, allocations: 73.58 kB / 0.6292 GB, free: 60.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/1.064, allocations: 4.627 MB / 0.6337 GB, free: 56.24 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001042/1.065, allocations: 0.9909 MB / 0.6347 GB, free: 55.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002552/1.067, allocations: 1.237 MB / 0.6359 GB, free: 54.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.73e-05/1.067, allocations: 305.1 kB / 0.6362 GB, free: 54.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003436/1.071, allocations: 2.443 MB / 0.6386 GB, free: 53.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004652/1.076, allocations: 5.601 MB / 0.644 GB, free: 47.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009145/1.085, allocations: 8.687 MB / 0.6525 GB, free: 39.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001204/1.085, allocations: 32 kB / 0.6526 GB, free: 39.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01451/1.099, allocations: 8.74 MB / 0.6611 GB, free: 30.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.922e-05/1.099, allocations: 52 kB / 0.6611 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/1.1, allocations: 108.9 kB / 0.6613 GB, free: 30.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002224/1.102, allocations: 0.8485 MB / 0.6621 GB, free: 29.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004517/1.106, allocations: 1.408 MB / 0.6635 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008479/1.115, allocations: 6.994 MB / 0.6703 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004486/1.119, allocations: 359.2 kB / 0.6706 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/1.121, allocations: 351.9 kB / 0.671 GB, free: 19.99 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006383/1.127, allocations: 3.673 MB / 0.6745 GB, free: 16.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001376/1.128, allocations: 411 kB / 0.6749 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008805/1.137, allocations: 5.055 MB / 0.6799 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/1.137, allocations: 39.78 kB / 0.6799 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.876e-05/1.137, allocations: 8 kB / 0.6799 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.587e-05/1.137, allocations: 11.95 kB / 0.6799 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02371/1.161, allocations: 12.2 MB / 0.6918 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.222e-05/1.161, allocations: 8 kB / 0.6919 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002464/1.164, allocations: 0.5266 MB / 0.6924 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002239/1.166, allocations: 0.6875 MB / 0.693 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004454/1.166, allocations: 67.98 kB / 0.6931 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009205/1.175, allocations: 6.15 MB / 0.6991 GB, free: 6.867 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/1.176, allocations: 4 kB / 0.6991 GB, free: 6.863 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1774/1.353, allocations: 7.311 MB / 0.7063 GB, free: 147.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002623/1.356, allocations: 0.8006 MB / 0.707 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008854/1.357, allocations: 59.94 kB / 0.7071 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/1.358, allocations: 161.3 kB / 0.7072 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005269/1.359, allocations: 205.2 kB / 0.7074 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002124/1.359, allocations: 88.95 kB / 0.7075 GB, free: 147.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004237/1.363, allocations: 2.671 MB / 0.7101 GB, free: 147.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.363, allocations: 3.719 kB / 0.7101 GB, free: 147.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006034/1.369, allocations: 1.55 MB / 0.7117 GB, free: 147.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005525/1.37, allocations: 216.5 kB / 0.7119 GB, free: 147.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009203/1.379, allocations: 6.108 MB / 0.7178 GB, free: 145.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.379, allocations: 3.125 kB / 0.7178 GB, free: 145.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003427/1.383, allocations: 2.475 MB / 0.7202 GB, free: 144.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004627/1.387, allocations: 0.8865 MB / 0.7211 GB, free: 143.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03167/1.419, allocations: 20.4 MB / 0.741 GB, free: 132.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009766/1.429, allocations: 6.201 MB / 0.7471 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006196/1.435, allocations: 1.94 MB / 0.749 GB, free: 130.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/1.436, allocations: 331.8 kB / 0.7493 GB, free: 130.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/1.436, allocations: 0 / 0.7493 GB, free: 130.1 MB / 462.1 MB Notification: Performance of Templates: time 0.08497/1.521, allocations: 56.85 MB / 0.8048 GB, free: 78.78 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches