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.001463/0.001463, allocations: 112.5 kB / 17.68 MB, free: 5.469 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.001584/0.001584, allocations: 192 kB / 18.61 MB, free: 4.543 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.373/1.373, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 50.84 kB / 302.1 MB, free: 5.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09923/0.1003, allocations: 49.44 MB / 351.5 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1989/0.2992, allocations: 28.58 MB / 380.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01767/0.3169, allocations: 8.403 MB / 388.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006068/0.323, allocations: 217.5 kB / 388.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01756/0.3406, allocations: 8.159 MB / 396.9 MB, free: 2.797 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00901/0.3496, allocations: 2.787 MB / 399.7 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005437/0.3551, allocations: 1.851 MB / 401.5 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01257/0.3676, allocations: 9.965 MB / 411.5 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02653/0.3942, allocations: 21.36 MB / 432.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00753/0.4018, allocations: 5.349 MB / 438.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009006/0.4108, allocations: 6.039 MB / 444.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003917/0.4147, allocations: 1.543 MB / 445.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005751/0.4205, allocations: 1.898 MB / 447.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003899/0.4244, allocations: 2.981 MB / 450.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008403/0.4329, allocations: 5.848 MB / 456.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0199/0.4528, allocations: 20.61 MB / 477.1 MB, free: 7.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4528, allocations: 0 / 477.1 MB, free: 7.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4528, allocations: 0 / 477.1 MB, free: 7.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004959/0.4533, allocations: 0 / 477.1 MB, free: 7.656 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.03484/0.4882, allocations: 11.84 MB / 488.9 MB, free: 11.72 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.4882, allocations: 8.031 kB / 488.9 MB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03047/0.5187, allocations: 5.639 MB / 494.6 MB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/0.5318, allocations: 6.297 MB / 0.4891 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006879/0.5326, allocations: 0.6985 MB / 0.4898 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003613/0.5362, allocations: 0.9256 MB / 0.4907 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0358/0.572, allocations: 15.07 MB / 0.5054 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000482/0.5725, allocations: 11.89 kB / 0.5055 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003049/0.5756, allocations: 396 kB / 0.5058 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006268/0.5762, allocations: 0.5116 MB / 0.5063 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03257/0.6088, allocations: 13.75 MB / 0.5198 GB, free: 240 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4357/1.045, allocations: 47.1 MB / 0.5658 GB, free: 89.61 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0158/1.06, allocations: 28.58 MB / 0.5937 GB, free: 60.84 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00447/1.065, allocations: 3.08 MB / 0.5967 GB, free: 59.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004408/1.065, allocations: 241.4 kB / 0.5969 GB, free: 59.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.325e-05/1.065, allocations: 83.34 kB / 0.597 GB, free: 58.99 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 6.913e-06/1.066, allocations: 0 / 0.597 GB, free: 58.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02758/1.093, allocations: 14.77 MB / 0.6114 GB, free: 45.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/1.093, allocations: 90.48 kB / 0.6115 GB, free: 45.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005545/1.099, allocations: 3.602 MB / 0.615 GB, free: 42.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004615/1.099, allocations: 85.7 kB / 0.6151 GB, free: 41.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001849/1.101, allocations: 4.045 MB / 0.619 GB, free: 37.85 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/1.102, allocations: 1.343 MB / 0.6204 GB, free: 36.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002265/1.105, allocations: 1.16 MB / 0.6215 GB, free: 35.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.052e-05/1.105, allocations: 301.1 kB / 0.6218 GB, free: 35.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003462/1.108, allocations: 2.588 MB / 0.6243 GB, free: 32.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00457/1.113, allocations: 5.088 MB / 0.6293 GB, free: 26.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00858/1.121, allocations: 8.344 MB / 0.6374 GB, free: 16.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.902e-05/1.121, allocations: 24 kB / 0.6374 GB, free: 16.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01471/1.136, allocations: 8.635 MB / 0.6459 GB, free: 7.973 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.136, allocations: 40 kB / 0.6459 GB, free: 7.934 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001593/1.136, allocations: 84 kB / 0.646 GB, free: 7.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/1.139, allocations: 0.8543 MB / 0.6468 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004725/1.144, allocations: 1.369 MB / 0.6482 GB, free: 5.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009872/1.154, allocations: 7.675 MB / 0.6557 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004482/1.158, allocations: 327.3 kB / 0.656 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/1.159, allocations: 308 kB / 0.6563 GB, free: 13.19 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.007361/1.167, allocations: 3.52 MB / 0.6597 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001384/1.168, allocations: 403 kB / 0.6601 GB, free: 9.258 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/1.18, allocations: 5.988 MB / 0.6659 GB, free: 3.234 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.38e-05/1.18, allocations: 43.94 kB / 0.666 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.461e-05/1.18, allocations: 8 kB / 0.666 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.937e-05/1.18, allocations: 19.92 kB / 0.666 GB, free: 3.164 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03171/1.212, allocations: 14.94 MB / 0.6806 GB, free: 4.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.647e-05/1.212, allocations: 8 kB / 0.6806 GB, free: 4.152 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003021/1.215, allocations: 0.6904 MB / 0.6813 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002119/1.217, allocations: 0.7137 MB / 0.682 GB, free: 2.746 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000563/1.218, allocations: 83.98 kB / 0.6821 GB, free: 2.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009677/1.228, allocations: 6.715 MB / 0.6886 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.488e-05/1.228, allocations: 8 kB / 0.6886 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/1.243, allocations: 8.758 MB / 0.6972 GB, free: 2.926 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00268/1.246, allocations: 0.8863 MB / 0.698 GB, free: 2.016 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/1.247, allocations: 72 kB / 0.6981 GB, free: 1.945 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002233/1.249, allocations: 187.9 kB / 0.6983 GB, free: 1.762 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005746/1.25, allocations: 262.7 kB / 0.6985 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003016/1.25, allocations: 116 kB / 0.6987 GB, free: 1.391 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.193/1.443, allocations: 2.412 MB / 0.701 GB, free: 154.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.61e-07/1.443, allocations: 1.031 kB / 0.701 GB, free: 154.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007234/1.45, allocations: 1.547 MB / 0.7025 GB, free: 154.9 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.0009147/1.451, allocations: 257 kB / 0.7028 GB, free: 154.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0106/1.462, allocations: 6.541 MB / 0.7092 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.462, allocations: 2.281 kB / 0.7092 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005162/1.467, allocations: 2.95 MB / 0.712 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.00594/1.473, allocations: 0.9525 MB / 0.713 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03165/1.505, allocations: 15.69 MB / 0.7283 GB, free: 145.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01032/1.515, allocations: 5.969 MB / 0.7341 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005477/1.521, allocations: 1.884 MB / 0.736 GB, free: 142.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/1.522, allocations: 347.8 kB / 0.7363 GB, free: 142.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.243e-06/1.522, allocations: 0 / 0.7363 GB, free: 142.9 MB / 478.1 MB Notification: Performance of Templates: time 0.08989/1.612, allocations: 57.62 MB / 0.7926 GB, free: 89.95 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 -s gbode -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