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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001449/0.001449, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 43.39 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 49.44 MB / 350.8 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2219/0.3297, allocations: 28.57 MB / 379.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01788/0.3476, allocations: 8.402 MB / 387.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006635/0.3543, allocations: 217.6 kB / 387.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01733/0.3717, allocations: 8.151 MB / 396.1 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.3829, allocations: 2.795 MB / 398.9 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00573/0.3887, allocations: 1.868 MB / 400.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01394/0.4026, allocations: 9.87 MB / 410.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03323/0.4359, allocations: 21.44 MB / 432.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01106/0.447, allocations: 5.342 MB / 437.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01146/0.4585, allocations: 6.062 MB / 443.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00482/0.4634, allocations: 1.543 MB / 445 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007275/0.4707, allocations: 1.898 MB / 446.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005766/0.4765, allocations: 2.981 MB / 449.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01418/0.4907, allocations: 5.848 MB / 455.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0266/0.5174, allocations: 20.5 MB / 476.2 MB, free: 8.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.5174, allocations: 4 kB / 476.2 MB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5175, allocations: 0 / 476.2 MB, free: 8.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005942/0.5181, allocations: 0 / 476.2 MB, free: 8.348 MB / 382.1 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.03758/0.5557, allocations: 11.88 MB / 488.1 MB, free: 12.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.5557, allocations: 8.031 kB / 488.1 MB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03044/0.5862, allocations: 5.608 MB / 493.7 MB, free: 6.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/0.5996, allocations: 6.125 MB / 499.9 MB, free: 0.5586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000754/0.6004, allocations: 0.7026 MB / 0.4888 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00393/0.6044, allocations: 0.9334 MB / 0.4897 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04014/0.6445, allocations: 15.07 MB / 0.5045 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003758/0.645, allocations: 19.89 kB / 0.5045 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00333/0.6483, allocations: 387.9 kB / 0.5048 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005254/0.6488, allocations: 0.5156 MB / 0.5053 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03111/0.68, allocations: 13.74 MB / 0.5188 GB, free: 1.09 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4658/1.146, allocations: 47.65 MB / 0.5653 GB, free: 90.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0158/1.162, allocations: 28.57 MB / 0.5932 GB, free: 61.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004691/1.166, allocations: 3.077 MB / 0.5962 GB, free: 59.69 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003811/1.167, allocations: 241.8 kB / 0.5964 GB, free: 59.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.125e-05/1.167, allocations: 76.83 kB / 0.5965 GB, free: 59.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 5.26e-06/1.167, allocations: 0 / 0.5965 GB, free: 59.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.03223/1.199, allocations: 14.77 MB / 0.6109 GB, free: 46.01 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/1.199, allocations: 90.48 kB / 0.611 GB, free: 45.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007313/1.207, allocations: 3.602 MB / 0.6146 GB, free: 42.31 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008455/1.207, allocations: 85.7 kB / 0.6146 GB, free: 42.22 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002755/1.21, allocations: 4.038 MB / 0.6186 GB, free: 38.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001973/1.212, allocations: 1.342 MB / 0.6199 GB, free: 36.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002625/1.215, allocations: 1.16 MB / 0.621 GB, free: 35.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.568e-05/1.215, allocations: 305.1 kB / 0.6213 GB, free: 35.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006265/1.221, allocations: 2.592 MB / 0.6238 GB, free: 32.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008613/1.23, allocations: 5.087 MB / 0.6288 GB, free: 26.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01582/1.246, allocations: 8.344 MB / 0.637 GB, free: 16.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.861e-05/1.246, allocations: 24 kB / 0.637 GB, free: 16.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.02661/1.273, allocations: 8.632 MB / 0.6454 GB, free: 8.285 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.273, allocations: 40 kB / 0.6454 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/1.273, allocations: 87.98 kB / 0.6455 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004131/1.277, allocations: 0.8575 MB / 0.6464 GB, free: 7.305 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008557/1.286, allocations: 1.373 MB / 0.6477 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/1.296, allocations: 7.698 MB / 0.6552 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004927/1.301, allocations: 327.3 kB / 0.6555 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001345/1.302, allocations: 304 kB / 0.6558 GB, free: 13.47 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00804/1.31, allocations: 3.509 MB / 0.6593 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001638/1.312, allocations: 415 kB / 0.6597 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01334/1.326, allocations: 5.984 MB / 0.6655 GB, free: 3.516 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.191e-05/1.326, allocations: 40 kB / 0.6655 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.582e-05/1.326, allocations: 8 kB / 0.6655 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.915e-05/1.326, allocations: 23.91 kB / 0.6656 GB, free: 3.445 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.035/1.361, allocations: 15.27 MB / 0.6805 GB, free: 3.984 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.08e-05/1.361, allocations: 4 kB / 0.6805 GB, free: 3.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003133/1.364, allocations: 0.6904 MB / 0.6812 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00236/1.366, allocations: 0.7254 MB / 0.6819 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006605/1.367, allocations: 91.91 kB / 0.682 GB, free: 2.473 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01029/1.377, allocations: 6.705 MB / 0.6885 GB, free: 11.63 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.308e-06/1.377, allocations: 7.938 kB / 0.6885 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01639/1.394, allocations: 8.757 MB / 0.6971 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002438/1.396, allocations: 0.8824 MB / 0.6979 GB, free: 1.836 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001192/1.397, allocations: 76 kB / 0.698 GB, free: 1.762 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002773/1.4, allocations: 183.9 kB / 0.6982 GB, free: 1.582 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008492/1.401, allocations: 262.7 kB / 0.6984 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004322/1.402, allocations: 120 kB / 0.6985 GB, free: 1.207 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.2213/1.623, allocations: 2.406 MB / 0.7009 GB, free: 155.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.623, allocations: 1.062 kB / 0.7009 GB, free: 155.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0082/1.631, allocations: 1.546 MB / 0.7024 GB, free: 155.1 MB / 478.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (377): * Single equations (assignments): 376 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001136/1.632, allocations: 256.2 kB / 0.7026 GB, free: 155 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0297/1.662, allocations: 12.87 MB / 0.7152 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.662, allocations: 0 / 0.7152 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005686/1.668, allocations: 2.951 MB / 0.7181 GB, free: 152.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006605/1.674, allocations: 0.9638 MB / 0.719 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0332/1.708, allocations: 15.62 MB / 0.7343 GB, free: 142.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01016/1.718, allocations: 5.793 MB / 0.7399 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/1.72, allocations: 384.1 kB / 0.7403 GB, free: 138 MB / 478.1 MB Notification: Performance of SimCode: time 9.91e-07/1.72, allocations: 0 / 0.7403 GB, free: 138 MB / 478.1 MB Notification: Performance of Templates: time 0.3764/2.096, allocations: 150.7 MB / 0.8875 GB, free: 143 MB / 478.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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