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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 221.5 MB / 230.3 MB, free: 7.504 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009407/0.0009406, allocations: 90.84 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.486e-05/1.489e-05, allocations: 4 kB / 337.1 MB, free: 9.996 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1166, allocations: 50.43 MB / 387.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4083/0.525, allocations: 136.2 MB / 0.5114 GB, free: 6.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003621/0.5254, allocations: 109.8 kB / 0.5115 GB, free: 6.395 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.099/1.624, allocations: 318 MB / 0.8221 GB, free: 32.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.724e-06/1.624, allocations: 0 / 0.8221 GB, free: 32.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001042/1.625, allocations: 208.7 kB / 0.8223 GB, free: 32.41 MB / 426.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.03312/1.659, allocations: 8.42 MB / 0.8305 GB, free: 24.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/1.659, allocations: 11.98 kB / 0.8305 GB, free: 24.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0227/1.681, allocations: 3.902 MB / 0.8344 GB, free: 21.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/1.702, allocations: 7.34 MB / 0.8415 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006222/1.702, allocations: 296 kB / 0.8418 GB, free: 13.44 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004271/1.707, allocations: 0.5233 MB / 0.8423 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02717/1.734, allocations: 11.37 MB / 0.8534 GB, free: 1.535 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04219/1.776, allocations: 13.29 MB / 0.8664 GB, free: 3.918 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005862/1.777, allocations: 15.91 kB / 0.8664 GB, free: 3.902 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004373/1.781, allocations: 12 kB / 0.8664 GB, free: 3.891 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001026/1.782, allocations: 0.6794 MB / 0.8671 GB, free: 3.207 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.429/2.211, allocations: 47.26 MB / 0.9132 GB, free: 42.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01762/2.229, allocations: 28.18 MB / 0.9408 GB, free: 17.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005312/2.234, allocations: 3.036 MB / 0.9437 GB, free: 17.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003696/2.235, allocations: 239.1 kB / 0.944 GB, free: 17.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/2.235, allocations: 73.28 kB / 0.944 GB, free: 17.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=386): time 6.091e-06/2.235, allocations: 0 / 0.944 GB, free: 17.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=394): time 0.02665/2.261, allocations: 13.18 MB / 0.9569 GB, free: 15.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/2.262, allocations: 92.34 kB / 0.957 GB, free: 15.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004885/2.266, allocations: 2.809 MB / 0.9597 GB, free: 14.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008224/2.267, allocations: 31.17 kB / 0.9598 GB, free: 14.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002382/2.27, allocations: 4.036 MB / 0.9637 GB, free: 11.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00171/2.271, allocations: 1.292 MB / 0.965 GB, free: 10.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/2.272, allocations: 2.531 kB / 0.965 GB, free: 10.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003196/2.272, allocations: 0.5425 MB / 0.9655 GB, free: 9.816 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003267/2.275, allocations: 2.536 MB / 0.968 GB, free: 8.801 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004492/2.28, allocations: 4.966 MB / 0.9728 GB, free: 4.578 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006929/2.287, allocations: 4.365 MB / 0.9771 GB, free: 3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.64e-05/2.287, allocations: 25 kB / 0.9771 GB, free: 2.996 MB / 442.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01703/2.304, allocations: 8.731 MB / 0.9856 GB, free: 276 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/2.304, allocations: 41.34 kB / 0.9857 GB, free: 276 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001783/2.304, allocations: 81.25 kB / 0.9858 GB, free: 276 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/2.307, allocations: 0.9342 MB / 0.9867 GB, free: 88 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005483/2.312, allocations: 1.381 MB / 0.988 GB, free: 44 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/2.324, allocations: 7.691 MB / 0.9955 GB, free: 11.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006614/2.331, allocations: 255.1 kB / 0.9958 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001989/2.333, allocations: 309.1 kB / 0.9961 GB, free: 11.83 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 708 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00257/2.335, allocations: 318 kB / 0.9964 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001538/2.337, allocations: 391.8 kB / 0.9967 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01349/2.35, allocations: 6.488 MB / 1.003 GB, free: 9.113 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.152e-05/2.35, allocations: 43.09 kB / 1.003 GB, free: 9.113 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/2.35, allocations: 13.2 kB / 1.003 GB, free: 9.109 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.01e-05/2.351, allocations: 17.2 kB / 1.003 GB, free: 9.109 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03688/2.387, allocations: 15.33 MB / 1.018 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.932e-05/2.387, allocations: 8 kB / 1.018 GB, free: 15.44 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00339/2.391, allocations: 0.7181 MB / 1.019 GB, free: 14.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/2.393, allocations: 0.6867 MB / 1.019 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005812/2.393, allocations: 27 kB / 1.02 GB, free: 14.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00818/2.402, allocations: 5.953 MB / 1.025 GB, free: 9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/2.402, allocations: 11.94 kB / 1.025 GB, free: 8.988 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01633/2.418, allocations: 9.75 MB / 1.035 GB, free: 292 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002519/2.421, allocations: 0.8988 MB / 1.036 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007358/2.421, allocations: 15.23 kB / 1.036 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002187/2.424, allocations: 166 kB / 1.036 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000468/2.424, allocations: 261.9 kB / 1.036 GB, free: 15.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002441/2.424, allocations: 111.1 kB / 1.036 GB, free: 15.09 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003655/2.428, allocations: 2.05 MB / 1.038 GB, free: 13.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.41e-07/2.428, allocations: 0 / 1.038 GB, free: 13.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008478/2.436, allocations: 1.401 MB / 1.04 GB, free: 11.92 MB / 490.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001693/2.438, allocations: 0.5155 MB / 1.04 GB, free: 11.49 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01218/2.45, allocations: 6.374 MB / 1.046 GB, free: 5.734 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/2.45, allocations: 8.188 kB / 1.046 GB, free: 5.727 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005063/2.456, allocations: 2.878 MB / 1.049 GB, free: 3.117 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00464/2.46, allocations: 0.7228 MB / 1.05 GB, free: 2.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3378/2.798, allocations: 13.48 MB / 1.063 GB, free: 86.43 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01388/2.812, allocations: 6.12 MB / 1.069 GB, free: 85.53 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008181/2.82, allocations: 1.862 MB / 1.071 GB, free: 85.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/2.822, allocations: 340.1 kB / 1.071 GB, free: 85.48 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/2.822, allocations: 0 / 1.071 GB, free: 85.48 MB / 490.7 MB Notification: Performance of Templates: time 0.1082/2.93, allocations: 55.91 MB / 1.126 GB, free: 82.46 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches