Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001121/0.001121, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 229.5 MB / 247.7 MB, free: 6.305 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008361/0.0008361, allocations: 92.84 kB / 299.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002031/0.0002031, allocations: 4 kB / 360.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1953, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01828/0.2136, allocations: 25.1 MB / 437.2 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01661/0.2303, allocations: 10.62 MB / 447.8 MB, free: 5.508 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005814/0.2361, allocations: 191.4 kB / 448 MB, free: 5.32 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005267/0.2414, allocations: 1.755 MB / 449.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008274/0.2497, allocations: 3.436 MB / 453.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00466/0.2544, allocations: 2.305 MB / 455.5 MB, free: 13.4 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.2663, allocations: 9.929 MB / 465.4 MB, free: 3.426 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03753/0.3039, allocations: 27.23 MB / 492.6 MB, free: 6.574 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005686/0.3096, allocations: 3.853 MB / 496.5 MB, free: 2.707 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006797/0.3164, allocations: 4.621 MB / 0.4894 GB, free: 14.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001934/0.3184, allocations: 0.5977 MB / 0.4899 GB, free: 13.47 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003706/0.3221, allocations: 0.9683 MB / 0.4909 GB, free: 12.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002534/0.3247, allocations: 1.833 MB / 0.4927 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007734/0.3324, allocations: 4.6 MB / 0.4972 GB, free: 6.031 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1935/0.5259, allocations: 19.38 MB / 0.5161 GB, free: 40.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.526, allocations: 0 / 0.5161 GB, free: 40.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.526, allocations: 0 / 0.5161 GB, free: 40.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004552/0.5265, allocations: 0 / 0.5161 GB, free: 40.5 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.02262/0.5491, allocations: 9.824 MB / 0.5257 GB, free: 35.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.5491, allocations: 13.44 kB / 0.5257 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.027/0.5761, allocations: 5.628 MB / 0.5312 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/0.5882, allocations: 6.132 MB / 0.5372 GB, free: 31.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005134/0.5887, allocations: 0.7074 MB / 0.5379 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003042/0.5918, allocations: 0.9371 MB / 0.5388 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02761/0.6194, allocations: 14.99 MB / 0.5534 GB, free: 24.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002024/0.6197, allocations: 19.52 kB / 0.5535 GB, free: 24.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000968/0.6206, allocations: 390.7 kB / 0.5538 GB, free: 24.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003274/0.621, allocations: 0.5104 MB / 0.5543 GB, free: 23.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02246/0.6434, allocations: 13.65 MB / 0.5677 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07351/0.717, allocations: 48.2 MB / 0.6147 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02954/0.7466, allocations: 28.54 MB / 0.6426 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006459/0.7531, allocations: 3.061 MB / 0.6456 GB, free: 8.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005609/0.7537, allocations: 322.8 kB / 0.6459 GB, free: 8.621 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.509e-05/0.7538, allocations: 81.27 kB / 0.646 GB, free: 8.535 MB / 458.7 MB Notification: Performance of pre-optimization done (n=384): time 9.297e-06/0.7538, allocations: 0 / 0.646 GB, free: 8.535 MB / 458.7 MB Notification: Performance of matching and sorting (n=392): time 0.04226/0.7961, allocations: 14.68 MB / 0.6603 GB, free: 9.805 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.922e-05/0.7962, allocations: 90.48 kB / 0.6604 GB, free: 9.703 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008322/0.8045, allocations: 3.571 MB / 0.6639 GB, free: 6.137 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000824/0.8054, allocations: 92.11 kB / 0.664 GB, free: 6.043 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004107/0.8095, allocations: 4.04 MB / 0.6679 GB, free: 1.977 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002042/0.8116, allocations: 1.345 MB / 0.6692 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004635/0.8121, allocations: 120 kB / 0.6694 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005122/0.8126, allocations: 0.5462 MB / 0.6699 GB, free: 15.97 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006057/0.8187, allocations: 2.565 MB / 0.6724 GB, free: 13.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008472/0.8272, allocations: 5.063 MB / 0.6773 GB, free: 7.207 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.232/1.059, allocations: 8.291 MB / 0.6854 GB, free: 170.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.618e-05/1.059, allocations: 24.56 kB / 0.6855 GB, free: 170.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01344/1.073, allocations: 8.576 MB / 0.6938 GB, free: 168.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.457e-05/1.073, allocations: 44.03 kB / 0.6939 GB, free: 168.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/1.073, allocations: 81.47 kB / 0.694 GB, free: 168.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002018/1.075, allocations: 0.8451 MB / 0.6948 GB, free: 168.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004245/1.079, allocations: 1.365 MB / 0.6961 GB, free: 168.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008454/1.088, allocations: 7.102 MB / 0.703 GB, free: 164.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003821/1.092, allocations: 325.8 kB / 0.7034 GB, free: 164.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005911/1.092, allocations: 305.6 kB / 0.7036 GB, free: 164.1 MB / 490.7 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.005898/1.098, allocations: 3.509 MB / 0.7071 GB, free: 162.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008556/1.099, allocations: 408.6 kB / 0.7075 GB, free: 162.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008541/1.107, allocations: 5.955 MB / 0.7133 GB, free: 159.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.721e-05/1.108, allocations: 39.81 kB / 0.7133 GB, free: 159.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/1.108, allocations: 7.906 kB / 0.7133 GB, free: 159.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.678e-05/1.108, allocations: 23 kB / 0.7133 GB, free: 159.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02351/1.131, allocations: 15.23 MB / 0.7282 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/1.131, allocations: 4 kB / 0.7282 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002652/1.134, allocations: 0.6908 MB / 0.7289 GB, free: 147 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/1.136, allocations: 0.696 MB / 0.7296 GB, free: 146.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003165/1.136, allocations: 89.94 kB / 0.7297 GB, free: 146.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006997/1.143, allocations: 6.151 MB / 0.7357 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.143, allocations: 7.938 kB / 0.7357 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/1.154, allocations: 8.684 MB / 0.7442 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001792/1.155, allocations: 0.8902 MB / 0.745 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004898/1.156, allocations: 79.98 kB / 0.7451 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/1.158, allocations: 187.8 kB / 0.7453 GB, free: 130.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004954/1.158, allocations: 264.1 kB / 0.7455 GB, free: 130.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/1.158, allocations: 112 kB / 0.7456 GB, free: 130.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003146/1.161, allocations: 2.384 MB / 0.748 GB, free: 127.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.161, allocations: 0 / 0.748 GB, free: 127.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004783/1.166, allocations: 1.561 MB / 0.7495 GB, free: 126.2 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 () * 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.0004882/1.167, allocations: 268.2 kB / 0.7497 GB, free: 125.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008356/1.175, allocations: 6.465 MB / 0.7561 GB, free: 119.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/1.175, allocations: 0 / 0.7561 GB, free: 119.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003902/1.179, allocations: 2.929 MB / 0.7589 GB, free: 116.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006812/1.186, allocations: 0.9089 MB / 0.7598 GB, free: 115.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02331/1.209, allocations: 19.84 MB / 0.7792 GB, free: 95.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005555/1.215, allocations: 5.963 MB / 0.785 GB, free: 89.66 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004938/1.22, allocations: 1.889 MB / 0.7869 GB, free: 87.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/1.221, allocations: 343.4 kB / 0.7872 GB, free: 87.43 MB / 490.7 MB Notification: Performance of SimCode: time 1.603e-06/1.221, allocations: 0 / 0.7872 GB, free: 87.43 MB / 490.7 MB Notification: Performance of Templates: time 0.08388/1.305, allocations: 59.89 MB / 0.8457 GB, free: 27.95 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches