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.0009859/0.000986, allocations: 187 kB / 17.92 MB, free: 3.855 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.104/1.104, allocations: 205.1 MB / 223.7 MB, free: 8.484 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.0008644/0.0008644, allocations: 95.66 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007076/0.0007076, allocations: 47.92 kB / 327.2 MB, free: 284 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.1766, allocations: 46.6 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01973/0.1964, allocations: 28.68 MB / 402.5 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.2087, allocations: 8.472 MB / 411 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004446/0.2132, allocations: 171.4 kB / 411.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01287/0.2261, allocations: 7.752 MB / 418.9 MB, free: 4.277 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006953/0.2331, allocations: 2.765 MB / 421.7 MB, free: 1.504 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003975/0.2371, allocations: 1.783 MB / 423.5 MB, free: 15.72 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.2475, allocations: 10.75 MB / 434.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02171/0.2692, allocations: 17.92 MB / 452.1 MB, free: 2.875 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005436/0.2747, allocations: 4.895 MB / 457 MB, free: 13.96 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007156/0.2818, allocations: 6.111 MB / 463.1 MB, free: 7.832 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002363/0.2842, allocations: 1.059 MB / 464.2 MB, free: 6.773 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003629/0.2879, allocations: 1.418 MB / 465.6 MB, free: 5.355 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001932/0.2898, allocations: 2.648 MB / 468.3 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005013/0.2948, allocations: 5.57 MB / 473.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01574/0.3106, allocations: 20.72 MB / 494.6 MB, free: 8.328 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3106, allocations: 0 / 494.6 MB, free: 8.328 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3106, allocations: 0 / 494.6 MB, free: 8.328 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002889/0.3109, allocations: 0 / 494.6 MB, free: 8.328 MB / 378.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.2673/0.5783, allocations: 12.48 MB / 0.4951 GB, free: 93.84 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.5783, allocations: 11 kB / 0.4952 GB, free: 93.84 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03944/0.6178, allocations: 8.577 MB / 0.5035 GB, free: 90.75 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01125/0.6291, allocations: 5.881 MB / 0.5093 GB, free: 86.83 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004015/0.6295, allocations: 0.7393 MB / 0.51 GB, free: 86.5 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002928/0.6324, allocations: 0.9831 MB / 0.511 GB, free: 85.96 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02843/0.6609, allocations: 16.57 MB / 0.5271 GB, free: 69.33 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003246/0.6612, allocations: 15.89 kB / 0.5272 GB, free: 69.32 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002156/0.6634, allocations: 419.6 kB / 0.5276 GB, free: 68.92 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004186/0.6638, allocations: 0.6068 MB / 0.5282 GB, free: 68.31 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02459/0.6884, allocations: 15.96 MB / 0.5437 GB, free: 52.34 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06394/0.7524, allocations: 52.11 MB / 0.5946 GB, free: 15.12 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03258/0.785, allocations: 52.27 MB / 0.6457 GB, free: 3.914 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004839/0.7899, allocations: 3.467 MB / 0.6491 GB, free: 444 kB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01425/0.8042, allocations: 9.407 MB / 0.6582 GB, free: 6.902 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.8042, allocations: 60.69 kB / 0.6583 GB, free: 6.832 MB / 458.8 MB Notification: Performance of pre-optimization done (n=270): time 3.547e-06/0.8042, allocations: 0 / 0.6583 GB, free: 6.832 MB / 458.8 MB Notification: Performance of matching and sorting (n=278): time 0.1595/0.9637, allocations: 12.87 MB / 0.6709 GB, free: 161.3 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.9637, allocations: 80.91 kB / 0.6709 GB, free: 161.3 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004576/0.9683, allocations: 4.058 MB / 0.6749 GB, free: 159.7 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.9686, allocations: 71.36 kB / 0.675 GB, free: 159.7 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001814/0.9704, allocations: 4.636 MB / 0.6795 GB, free: 156.2 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006059/0.971, allocations: 0.994 MB / 0.6805 GB, free: 155.4 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/0.9724, allocations: 1.23 MB / 0.6817 GB, free: 154.8 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 3.144e-05/0.9724, allocations: 301.1 kB / 0.682 GB, free: 154.5 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002927/0.9753, allocations: 2.444 MB / 0.6843 GB, free: 153.6 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003567/0.9789, allocations: 5.606 MB / 0.6898 GB, free: 148.5 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006273/0.9852, allocations: 8.684 MB / 0.6983 GB, free: 141.6 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.88e-05/0.9853, allocations: 31.22 kB / 0.6983 GB, free: 141.6 MB / 458.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.0104/0.9957, allocations: 8.743 MB / 0.7069 GB, free: 137.8 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.9957, allocations: 52 kB / 0.7069 GB, free: 137.8 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.532e-05/0.9958, allocations: 112 kB / 0.707 GB, free: 137.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.9976, allocations: 0.8527 MB / 0.7079 GB, free: 137 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003431/1.001, allocations: 1.402 MB / 0.7092 GB, free: 135.8 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007112/1.008, allocations: 6.99 MB / 0.7161 GB, free: 129.3 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003651/1.012, allocations: 355.3 kB / 0.7164 GB, free: 129 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004287/1.012, allocations: 348.9 kB / 0.7167 GB, free: 128.6 MB / 458.8 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.00385/1.016, allocations: 3.68 MB / 0.7203 GB, free: 124.9 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006498/1.017, allocations: 407 kB / 0.7207 GB, free: 124.5 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006449/1.023, allocations: 5.066 MB / 0.7257 GB, free: 119.4 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/1.023, allocations: 28 kB / 0.7257 GB, free: 119.4 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/1.023, allocations: 11.94 kB / 0.7257 GB, free: 119.4 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/1.023, allocations: 11.95 kB / 0.7257 GB, free: 119.4 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01471/1.038, allocations: 12.2 MB / 0.7376 GB, free: 107.1 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/1.038, allocations: 0 / 0.7376 GB, free: 107.1 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/1.04, allocations: 0.5231 MB / 0.7381 GB, free: 106.6 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001614/1.041, allocations: 0.6914 MB / 0.7388 GB, free: 105.9 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001515/1.042, allocations: 59.98 kB / 0.7389 GB, free: 105.8 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00612/1.048, allocations: 6.162 MB / 0.7449 GB, free: 99.51 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.048, allocations: 4 kB / 0.7449 GB, free: 99.51 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/1.061, allocations: 13.22 MB / 0.7578 GB, free: 85.98 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/1.063, allocations: 0.7966 MB / 0.7586 GB, free: 85.16 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003689/1.063, allocations: 63.83 kB / 0.7586 GB, free: 85.1 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/1.065, allocations: 167.8 kB / 0.7588 GB, free: 84.94 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003714/1.065, allocations: 202 kB / 0.759 GB, free: 84.74 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/1.065, allocations: 87.98 kB / 0.7591 GB, free: 84.65 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.002742/1.068, allocations: 2.672 MB / 0.7617 GB, free: 81.97 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.3e-07/1.068, allocations: 4 kB / 0.7617 GB, free: 81.96 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004708/1.073, allocations: 1.789 MB / 0.7634 GB, free: 80.18 MB / 458.8 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.0003675/1.073, allocations: 216.2 kB / 0.7636 GB, free: 79.96 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.006983/1.08, allocations: 6.113 MB / 0.7696 GB, free: 73.84 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.08, allocations: 0 / 0.7696 GB, free: 73.84 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002863/1.083, allocations: 2.465 MB / 0.772 GB, free: 71.36 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003473/1.086, allocations: 0.8865 MB / 0.7729 GB, free: 70.49 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0217/1.108, allocations: 21.96 MB / 0.7943 GB, free: 48.49 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004761/1.113, allocations: 6.277 MB / 0.8005 GB, free: 42.18 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.00457/1.118, allocations: 1.951 MB / 0.8024 GB, free: 40.22 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007608/1.118, allocations: 323.4 kB / 0.8027 GB, free: 39.9 MB / 458.8 MB Notification: Performance of SimCode: time 8.61e-07/1.118, allocations: 0 / 0.8027 GB, free: 39.9 MB / 458.8 MB Notification: Performance of Templates: time 0.2251/1.343, allocations: 58.43 MB / 0.8597 GB, free: 133 MB / 458.8 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@2/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