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.001136/0.001136, allocations: 93.2 kB / 16.65 MB, free: 6.602 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.001363/0.001363, allocations: 174.6 kB / 17.56 MB, free: 6.203 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.305/1.305, allocations: 223.2 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002823, allocations: 7.938 kB / 301.4 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.08769, allocations: 50.42 MB / 351.9 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1854/0.2731, allocations: 26.85 MB / 378.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.2896, allocations: 8.252 MB / 387 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005872/0.2955, allocations: 198.4 kB / 387.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005642/0.3011, allocations: 1.76 MB / 388.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009411/0.3106, allocations: 2.524 MB / 391.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004621/0.3152, allocations: 1.546 MB / 393 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01223/0.3274, allocations: 9.854 MB / 402.8 MB, free: 452 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03769/0.3652, allocations: 21.36 MB / 424.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006699/0.3719, allocations: 3.752 MB / 428 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007516/0.3795, allocations: 4.59 MB / 432.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002157/0.3816, allocations: 0.5977 MB / 433.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004257/0.3859, allocations: 0.9566 MB / 434.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003144/0.3891, allocations: 1.833 MB / 435.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007664/0.3968, allocations: 4.597 MB / 440.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02027/0.4171, allocations: 19.37 MB / 459.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4171, allocations: 0 / 459.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.4171, allocations: 0 / 459.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004508/0.4176, allocations: 0 / 459.9 MB, free: 9.375 MB / 366.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.02705/0.4446, allocations: 9.8 MB / 469.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.4447, allocations: 8.031 kB / 469.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03165/0.4764, allocations: 5.635 MB / 475.3 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/0.4887, allocations: 6.141 MB / 481.5 MB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008042/0.4895, allocations: 0.7025 MB / 482.2 MB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003283/0.4928, allocations: 0.9257 MB / 483.1 MB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03671/0.5296, allocations: 15.07 MB / 498.2 MB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004614/0.53, allocations: 15.81 kB / 498.2 MB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002743/0.5328, allocations: 392 kB / 498.6 MB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000596/0.5334, allocations: 0.5194 MB / 499.1 MB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02846/0.5619, allocations: 13.73 MB / 0.5008 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4061/0.968, allocations: 47.77 MB / 0.5475 GB, free: 97.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01507/0.9831, allocations: 28.57 MB / 0.5754 GB, free: 69.74 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004344/0.9874, allocations: 3.076 MB / 0.5784 GB, free: 68.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002981/0.9878, allocations: 241.2 kB / 0.5786 GB, free: 67.97 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.9878, allocations: 70.23 kB / 0.5787 GB, free: 67.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 5.18e-06/0.9878, allocations: 0 / 0.5787 GB, free: 67.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02666/1.014, allocations: 14.74 MB / 0.5931 GB, free: 59.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/1.015, allocations: 93.36 kB / 0.5931 GB, free: 59.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004594/1.019, allocations: 3.598 MB / 0.5967 GB, free: 57.51 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005094/1.02, allocations: 89.52 kB / 0.5967 GB, free: 57.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/1.021, allocations: 4.036 MB / 0.6007 GB, free: 53.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001043/1.022, allocations: 1.35 MB / 0.602 GB, free: 52.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005472/1.023, allocations: 477 kB / 0.6025 GB, free: 52.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.791e-05/1.023, allocations: 301.1 kB / 0.6027 GB, free: 52.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003324/1.026, allocations: 2.591 MB / 0.6053 GB, free: 50.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004158/1.031, allocations: 5.088 MB / 0.6102 GB, free: 44.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007841/1.038, allocations: 8.333 MB / 0.6184 GB, free: 34.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.994e-05/1.038, allocations: 24 kB / 0.6184 GB, free: 34.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01188/1.05, allocations: 8.624 MB / 0.6268 GB, free: 26.14 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.457e-05/1.05, allocations: 40 kB / 0.6269 GB, free: 26.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/1.051, allocations: 84 kB / 0.6269 GB, free: 26.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/1.053, allocations: 0.837 MB / 0.6278 GB, free: 25.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/1.057, allocations: 1.365 MB / 0.6291 GB, free: 23.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008414/1.065, allocations: 7.117 MB / 0.636 GB, free: 16.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004286/1.07, allocations: 327.3 kB / 0.6364 GB, free: 16.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005693/1.07, allocations: 308 kB / 0.6366 GB, free: 15.93 MB / 430.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.005002/1.075, allocations: 3.513 MB / 0.6401 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007849/1.076, allocations: 411 kB / 0.6405 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008532/1.085, allocations: 5.968 MB / 0.6463 GB, free: 5.996 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-05/1.085, allocations: 44 kB / 0.6463 GB, free: 5.953 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/1.085, allocations: 8 kB / 0.6463 GB, free: 5.945 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.157e-05/1.085, allocations: 19.92 kB / 0.6464 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02269/1.107, allocations: 15.26 MB / 0.6613 GB, free: 6.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/1.107, allocations: 7.938 kB / 0.6613 GB, free: 6.477 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/1.11, allocations: 0.6905 MB / 0.6619 GB, free: 5.785 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001936/1.112, allocations: 0.6897 MB / 0.6626 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/1.112, allocations: 91.97 kB / 0.6627 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008755/1.121, allocations: 6.165 MB / 0.6687 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/1.121, allocations: 11.94 kB / 0.6687 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/1.134, allocations: 8.727 MB / 0.6773 GB, free: 5.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001975/1.136, allocations: 0.8863 MB / 0.6781 GB, free: 4.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004762/1.137, allocations: 72 kB / 0.6782 GB, free: 4.859 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001872/1.139, allocations: 187.8 kB / 0.6784 GB, free: 4.676 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005077/1.139, allocations: 266.7 kB / 0.6786 GB, free: 4.414 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002271/1.139, allocations: 119.9 kB / 0.6787 GB, free: 4.297 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003648/1.143, allocations: 2.412 MB / 0.6811 GB, free: 1.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.3e-07/1.143, allocations: 0 / 0.6811 GB, free: 1.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004972/1.148, allocations: 1.55 MB / 0.6826 GB, free: 360 kB / 462.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.0005214/1.148, allocations: 260.2 kB / 0.6829 GB, free: 104 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01028/1.159, allocations: 6.496 MB / 0.6892 GB, free: 9.602 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/1.159, allocations: 4 kB / 0.6892 GB, free: 9.598 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004649/1.163, allocations: 2.943 MB / 0.6921 GB, free: 6.641 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006602/1.17, allocations: 0.9053 MB / 0.693 GB, free: 5.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1951/1.365, allocations: 19.82 MB / 0.7123 GB, free: 148.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007684/1.373, allocations: 5.969 MB / 0.7182 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005057/1.378, allocations: 1.881 MB / 0.72 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009602/1.379, allocations: 345.8 kB / 0.7203 GB, free: 147.6 MB / 478.1 MB Notification: Performance of SimCode: time 6.11e-07/1.379, allocations: 0 / 0.7203 GB, free: 147.6 MB / 478.1 MB Notification: Performance of Templates: time 0.1162/1.495, allocations: 59.66 MB / 0.7786 GB, free: 102.7 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/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","/var/lib/jenkins/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