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.001441/0.001441, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 221.3 MB / 235.5 MB, free: 2.883 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.0009481/0.0009478, allocations: 93.72 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.686e-05, allocations: 0 / 343.9 MB, free: 4.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 50.42 MB / 394.3 MB, free: 1.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4122/0.5328, allocations: 136.9 MB / 0.5187 GB, free: 14.54 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.5331, allocations: 101.5 kB / 0.5188 GB, free: 14.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.11/1.644, allocations: 321.5 MB / 0.8328 GB, free: 33.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.743e-06/1.644, allocations: 0 / 0.8328 GB, free: 33.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006526/1.644, allocations: 207.8 kB / 0.833 GB, free: 32.9 MB / 442.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.03148/1.676, allocations: 8.414 MB / 0.8412 GB, free: 24.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/1.676, allocations: 12.03 kB / 0.8412 GB, free: 24.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02397/1.7, allocations: 3.91 MB / 0.845 GB, free: 20.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03094/1.731, allocations: 7.346 MB / 0.8522 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001359/1.732, allocations: 0.6665 MB / 0.8529 GB, free: 12.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005859/1.738, allocations: 0.8905 MB / 0.8537 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06104/1.799, allocations: 14.72 MB / 0.8681 GB, free: 12.45 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005246/1.8, allocations: 23.77 kB / 0.8681 GB, free: 12.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003424/1.803, allocations: 384 kB / 0.8685 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009824/1.804, allocations: 0.6911 MB / 0.8692 GB, free: 11.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3577/2.162, allocations: 12.51 MB / 0.8814 GB, free: 53.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1082/2.27, allocations: 47.93 MB / 0.9282 GB, free: 45.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02658/2.297, allocations: 28.43 MB / 0.9559 GB, free: 20.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007942/2.305, allocations: 2.995 MB / 0.9589 GB, free: 20.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008171/2.306, allocations: 241.5 kB / 0.9591 GB, free: 20.15 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/2.306, allocations: 77.38 kB / 0.9592 GB, free: 20.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=386): time 1.528e-05/2.306, allocations: 3.781 kB / 0.9592 GB, free: 20.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=394): time 0.02901/2.335, allocations: 11.31 MB / 0.9702 GB, free: 15.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/2.335, allocations: 93.31 kB / 0.9703 GB, free: 15.14 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007142/2.342, allocations: 3.12 MB / 0.9734 GB, free: 13.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001148/2.343, allocations: 91.7 kB / 0.9734 GB, free: 13.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003619/2.347, allocations: 4.024 MB / 0.9774 GB, free: 10.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001969/2.349, allocations: 1.345 MB / 0.9787 GB, free: 9.797 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/2.35, allocations: 119.5 kB / 0.9788 GB, free: 9.703 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007007/2.351, allocations: 0.5442 MB / 0.9793 GB, free: 9.293 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00469/2.356, allocations: 2.507 MB / 0.9818 GB, free: 8.336 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006504/2.362, allocations: 4.96 MB / 0.9866 GB, free: 4.195 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006707/2.369, allocations: 3.722 MB / 0.9903 GB, free: 2.758 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001265/2.369, allocations: 23.75 kB / 0.9903 GB, free: 2.758 MB / 458.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01716/2.386, allocations: 8.484 MB / 0.9986 GB, free: 4 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001438/2.387, allocations: 41.53 kB / 0.9986 GB, free: 4 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002027/2.387, allocations: 83.91 kB / 0.9987 GB, free: 4 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002666/2.389, allocations: 0.8914 MB / 0.9996 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005554/2.395, allocations: 1.352 MB / 1.001 GB, free: 15.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/2.407, allocations: 7.532 MB / 1.008 GB, free: 11.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005467/2.413, allocations: 329.5 kB / 1.009 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001514/2.415, allocations: 307.4 kB / 1.009 GB, free: 11.55 MB / 474.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 (716): * Single equations (assignments): 714 * 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%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002386/2.417, allocations: 0.4943 MB / 1.009 GB, free: 11.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001523/2.418, allocations: 415.7 kB / 1.01 GB, free: 10.99 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01391/2.432, allocations: 5.848 MB / 1.015 GB, free: 8.715 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.766e-05/2.432, allocations: 43.38 kB / 1.015 GB, free: 8.711 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-05/2.433, allocations: 16.52 kB / 1.015 GB, free: 8.707 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.51e-05/2.433, allocations: 18.52 kB / 1.016 GB, free: 8.707 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.037/2.47, allocations: 15.32 MB / 1.03 GB, free: 2.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/2.47, allocations: 8.031 kB / 1.03 GB, free: 2.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003187/2.473, allocations: 0.6861 MB / 1.031 GB, free: 1.875 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002132/2.475, allocations: 0.6802 MB / 1.032 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008153/2.476, allocations: 90.94 kB / 1.032 GB, free: 1.273 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01118/2.487, allocations: 6.291 MB / 1.038 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/2.487, allocations: 8 kB / 1.038 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01574/2.503, allocations: 8.92 MB / 1.047 GB, free: 4.004 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003246/2.506, allocations: 0.8825 MB / 1.048 GB, free: 3.191 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/2.508, allocations: 75.66 kB / 1.048 GB, free: 3.121 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002959/2.51, allocations: 189.6 kB / 1.048 GB, free: 2.984 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006558/2.511, allocations: 263.7 kB / 1.048 GB, free: 2.816 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002885/2.511, allocations: 115.5 kB / 1.048 GB, free: 2.711 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005089/2.517, allocations: 2.327 MB / 1.051 GB, free: 0.6641 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.41e-07/2.517, allocations: 0 / 1.051 GB, free: 0.6641 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01435/2.531, allocations: 2.046 MB / 1.053 GB, free: 0 / 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001921/2.533, allocations: 0.6951 MB / 1.053 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01335/2.546, allocations: 6.374 MB / 1.059 GB, free: 9.617 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/2.546, allocations: 9.812 kB / 1.059 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006035/2.552, allocations: 2.843 MB / 1.062 GB, free: 7.023 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005888/2.558, allocations: 0.849 MB / 1.063 GB, free: 6.367 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3421/2.9, allocations: 14.43 MB / 1.077 GB, free: 92.59 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01025/2.911, allocations: 6.113 MB / 1.083 GB, free: 91.68 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007372/2.918, allocations: 1.866 MB / 1.085 GB, free: 91.64 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001625/2.92, allocations: 345.2 kB / 1.085 GB, free: 91.64 MB / 0.4948 GB Notification: Performance of SimCode: time 8.72e-07/2.92, allocations: 4 kB / 1.085 GB, free: 91.64 MB / 0.4948 GB Notification: Performance of Templates: time 0.1115/3.031, allocations: 62.95 MB / 1.147 GB, free: 88.39 MB / 0.4948 GB 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