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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001664/0.001664, allocations: 172.6 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008428/0.0008428, allocations: 90.67 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.111e-05/2.113e-05, allocations: 0 / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07929/0.07933, allocations: 47.58 MB / 370.1 MB, free: 1.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3337/0.4131, allocations: 135.8 MB / 0.494 GB, free: 6.199 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.4134, allocations: 104.9 kB / 0.4941 GB, free: 6.141 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9945/1.408, allocations: 331.3 MB / 0.8176 GB, free: 7.992 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/1.408, allocations: 0 / 0.8176 GB, free: 7.992 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00042/1.408, allocations: 223.7 kB / 0.8178 GB, free: 7.773 MB / 410.7 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.02483/1.433, allocations: 8.734 MB / 0.8264 GB, free: 14.96 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/1.433, allocations: 20.98 kB / 0.8264 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03122/1.465, allocations: 5.848 MB / 0.8321 GB, free: 9.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01739/1.482, allocations: 7.444 MB / 0.8394 GB, free: 1.566 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008975/1.483, allocations: 0.7221 MB / 0.8401 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003598/1.486, allocations: 0.9374 MB / 0.841 GB, free: 15.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2701/1.757, allocations: 16.82 MB / 0.8574 GB, free: 44.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004213/1.757, allocations: 16.7 kB / 0.8574 GB, free: 44.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002837/1.76, allocations: 411.3 kB / 0.8578 GB, free: 44.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008608/1.761, allocations: 0.7151 MB / 0.8585 GB, free: 44.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03029/1.791, allocations: 15.66 MB / 0.8738 GB, free: 44.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08522/1.876, allocations: 52.79 MB / 0.9254 GB, free: 32.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02778/1.904, allocations: 41.39 MB / 0.9658 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009752/1.914, allocations: 7.011 MB / 0.9726 GB, free: 9.145 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03457/1.948, allocations: 21.76 MB / 0.9939 GB, free: 14.97 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.31e-05/1.949, allocations: 91.23 kB / 0.994 GB, free: 14.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=688): time 8.285e-06/1.949, allocations: 0 / 0.994 GB, free: 14.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=696): time 0.03816/1.987, allocations: 22.73 MB / 1.016 GB, free: 2.867 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/1.987, allocations: 114.5 kB / 1.016 GB, free: 2.742 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004404/1.991, allocations: 2.439 MB / 1.019 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001438/1.993, allocations: 120 kB / 1.019 GB, free: 440 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003205/1.996, allocations: 3.685 MB / 1.022 GB, free: 13.42 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003396/1.999, allocations: 2.296 MB / 1.025 GB, free: 11.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005814/2, allocations: 132 kB / 1.025 GB, free: 11.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006734/2.001, allocations: 0.5965 MB / 1.025 GB, free: 10.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007246/2.008, allocations: 4.461 MB / 1.03 GB, free: 6.727 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009517/2.017, allocations: 6.261 MB / 1.036 GB, free: 376 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2558/2.273, allocations: 5.597 MB / 1.041 GB, free: 93.76 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.919e-05/2.273, allocations: 15.53 kB / 1.041 GB, free: 93.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.02286/2.296, allocations: 13.53 MB / 1.054 GB, free: 93.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.976e-05/2.296, allocations: 27.28 kB / 1.055 GB, free: 93.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.806e-05/2.296, allocations: 57.25 kB / 1.055 GB, free: 93.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006927/2.303, allocations: 3.976 MB / 1.058 GB, free: 93.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00498/2.308, allocations: 1.216 MB / 1.06 GB, free: 93.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009899/2.318, allocations: 9.638 MB / 1.069 GB, free: 91.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004588/2.323, allocations: 351.1 kB / 1.069 GB, free: 91.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009013/2.324, allocations: 319 kB / 1.07 GB, free: 91.32 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001112/2.325, allocations: 486 kB / 1.07 GB, free: 91.21 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009483/2.326, allocations: 455.2 kB / 1.071 GB, free: 91.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0188/2.345, allocations: 12.83 MB / 1.083 GB, free: 90.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001626/2.345, allocations: 183.3 kB / 1.083 GB, free: 90.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/2.345, allocations: 0 / 1.083 GB, free: 90.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.851e-05/2.345, allocations: 27.14 kB / 1.083 GB, free: 90.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03902/2.384, allocations: 24.68 MB / 1.107 GB, free: 85.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.793e-05/2.384, allocations: 3.375 kB / 1.107 GB, free: 85.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003868/2.388, allocations: 0.8144 MB / 1.108 GB, free: 85.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006904/2.395, allocations: 3.892 MB / 1.112 GB, free: 84.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001352/2.396, allocations: 148.3 kB / 1.112 GB, free: 83.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009381/2.406, allocations: 9.507 MB / 1.121 GB, free: 78.72 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.406, allocations: 9.234 kB / 1.121 GB, free: 78.72 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02548/2.431, allocations: 19.38 MB / 1.14 GB, free: 69.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003598/2.435, allocations: 1.476 MB / 1.142 GB, free: 69.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001397/2.436, allocations: 102.3 kB / 1.142 GB, free: 68.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003411/2.44, allocations: 266.8 kB / 1.142 GB, free: 68.87 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001207/2.441, allocations: 0.513 MB / 1.143 GB, free: 68.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000499/2.441, allocations: 197 kB / 1.143 GB, free: 68.44 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002543/2.444, allocations: 1.825 MB / 1.145 GB, free: 66.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/2.444, allocations: 0 / 1.145 GB, free: 66.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005805/2.45, allocations: 1.721 MB / 1.146 GB, free: 65.1 MB / 490.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001206/2.451, allocations: 0.6546 MB / 1.147 GB, free: 64.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01669/2.468, allocations: 11.03 MB / 1.158 GB, free: 54.83 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/2.468, allocations: 4 kB / 1.158 GB, free: 54.82 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009862/2.478, allocations: 5.654 MB / 1.163 GB, free: 49.82 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005069/2.483, allocations: 0.8447 MB / 1.164 GB, free: 49.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03062/2.513, allocations: 18.03 MB / 1.182 GB, free: 33.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00603/2.519, allocations: 6.532 MB / 1.188 GB, free: 28.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004865/2.524, allocations: 1.558 MB / 1.19 GB, free: 27.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001078/2.525, allocations: 338.7 kB / 1.19 GB, free: 26.83 MB / 490.7 MB Notification: Performance of SimCode: time 9.72e-07/2.525, allocations: 0 / 1.19 GB, free: 26.83 MB / 490.7 MB Notification: Performance of Templates: time 0.3865/2.912, allocations: 105 MB / 1.292 GB, free: 75.76 MB / 490.7 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