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.0009911/0.0009912, allocations: 108.6 kB / 16.62 MB, free: 6.809 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.0009756/0.0009756, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.29/1.29, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009174/0.0009174, allocations: 47.83 kB / 300.2 MB, free: 5.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0773/0.07823, allocations: 49.45 MB / 349.6 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.168/0.2462, allocations: 28.05 MB / 377.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01382/0.2601, allocations: 8.288 MB / 385.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004309/0.2645, allocations: 204.3 kB / 386.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01524/0.2797, allocations: 7.725 MB / 393.9 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008357/0.2881, allocations: 2.521 MB / 396.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004701/0.2928, allocations: 1.733 MB / 398.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.3049, allocations: 9.902 MB / 408 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03007/0.335, allocations: 24.68 MB / 432.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007461/0.3425, allocations: 5.396 MB / 438.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008514/0.351, allocations: 6.105 MB / 444.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002659/0.3537, allocations: 1.539 MB / 445.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004255/0.358, allocations: 1.914 MB / 447.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002406/0.3604, allocations: 2.985 MB / 450.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006911/0.3673, allocations: 5.844 MB / 456.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01778/0.3851, allocations: 20.51 MB / 477 MB, free: 6.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3852, allocations: 0 / 477 MB, free: 6.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3852, allocations: 0 / 477 MB, free: 6.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003761/0.3856, allocations: 4 kB / 477 MB, free: 6.68 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.02948/0.415, allocations: 11.87 MB / 488.9 MB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4151, allocations: 12.03 kB / 488.9 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02982/0.4449, allocations: 5.604 MB / 494.5 MB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.4569, allocations: 6.125 MB / 0.4889 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007744/0.4577, allocations: 0.7063 MB / 0.4896 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003641/0.4614, allocations: 0.9295 MB / 0.4905 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03088/0.4923, allocations: 15.07 MB / 0.5052 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002252/0.4926, allocations: 15.84 kB / 0.5052 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001137/0.4937, allocations: 392 kB / 0.5056 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004414/0.4941, allocations: 0.5156 MB / 0.5061 GB, free: 13.19 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3167/0.8109, allocations: 13.73 MB / 0.5195 GB, free: 118.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07053/0.8814, allocations: 47.64 MB / 0.566 GB, free: 89.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/0.8953, allocations: 28.58 MB / 0.5939 GB, free: 60.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00388/0.8992, allocations: 3.078 MB / 0.5969 GB, free: 58.78 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003133/0.8996, allocations: 240.5 kB / 0.5972 GB, free: 58.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.8996, allocations: 76.36 kB / 0.5972 GB, free: 58.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 5.35e-06/0.8996, allocations: 0 / 0.5972 GB, free: 58.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02302/0.9227, allocations: 14.71 MB / 0.6116 GB, free: 44.81 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.9227, allocations: 94.47 kB / 0.6117 GB, free: 44.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003952/0.9267, allocations: 3.598 MB / 0.6152 GB, free: 41.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000296/0.927, allocations: 89.7 kB / 0.6153 GB, free: 41.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001404/0.9284, allocations: 4.042 MB / 0.6192 GB, free: 36.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007161/0.9291, allocations: 1.342 MB / 0.6205 GB, free: 35.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001292/0.9304, allocations: 1.156 MB / 0.6217 GB, free: 34.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.649e-05/0.9305, allocations: 305.1 kB / 0.622 GB, free: 34.15 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002838/0.9333, allocations: 2.592 MB / 0.6245 GB, free: 31.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003602/0.9369, allocations: 5.087 MB / 0.6295 GB, free: 25.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006929/0.9439, allocations: 8.333 MB / 0.6376 GB, free: 15.78 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-05/0.9439, allocations: 24 kB / 0.6376 GB, free: 15.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01064/0.9546, allocations: 8.627 MB / 0.6461 GB, free: 7.102 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.771e-05/0.9546, allocations: 43.94 kB / 0.6461 GB, free: 7.059 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-05/0.9547, allocations: 80 kB / 0.6462 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001924/0.9567, allocations: 0.8501 MB / 0.647 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003864/0.9605, allocations: 1.361 MB / 0.6483 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008789/0.9693, allocations: 7.618 MB / 0.6558 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003578/0.9729, allocations: 331.2 kB / 0.6561 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005454/0.9735, allocations: 312 kB / 0.6564 GB, free: 12.38 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.004953/0.9785, allocations: 3.513 MB / 0.6598 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009031/0.9794, allocations: 410.9 kB / 0.6602 GB, free: 8.441 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009631/0.989, allocations: 5.961 MB / 0.666 GB, free: 2.445 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.349e-05/0.9891, allocations: 40 kB / 0.6661 GB, free: 2.406 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.9891, allocations: 12 kB / 0.6661 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.553e-05/0.9891, allocations: 19.92 kB / 0.6661 GB, free: 2.375 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02568/1.015, allocations: 15.25 MB / 0.681 GB, free: 2.941 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/1.015, allocations: 11.97 kB / 0.681 GB, free: 2.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002669/1.018, allocations: 0.6904 MB / 0.6817 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002005/1.02, allocations: 0.7014 MB / 0.6824 GB, free: 1.535 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002816/1.02, allocations: 87.97 kB / 0.6824 GB, free: 1.449 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008993/1.029, allocations: 6.652 MB / 0.6889 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.029, allocations: 11.94 kB / 0.6889 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01303/1.042, allocations: 8.732 MB / 0.6975 GB, free: 1.789 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002123/1.044, allocations: 0.8785 MB / 0.6983 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005812/1.045, allocations: 76 kB / 0.6984 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/1.047, allocations: 183.8 kB / 0.6986 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005225/1.047, allocations: 266.7 kB / 0.6988 GB, free: 380 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002332/1.047, allocations: 116 kB / 0.6989 GB, free: 264 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.1794/1.227, allocations: 2.406 MB / 0.7013 GB, free: 155.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.81e-07/1.227, allocations: 0 / 0.7013 GB, free: 155.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006478/1.233, allocations: 1.546 MB / 0.7028 GB, free: 155.2 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.0008006/1.234, allocations: 258 kB / 0.7031 GB, free: 155.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02954/1.264, allocations: 12.86 MB / 0.7156 GB, free: 153.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/1.264, allocations: 0 / 0.7156 GB, free: 153.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005562/1.269, allocations: 2.937 MB / 0.7185 GB, free: 152.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005305/1.275, allocations: 0.9575 MB / 0.7194 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02999/1.305, allocations: 19.77 MB / 0.7387 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005692/1.31, allocations: 5.975 MB / 0.7446 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004932/1.315, allocations: 1.878 MB / 0.7464 GB, free: 132.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/1.316, allocations: 342 kB / 0.7467 GB, free: 131.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.202e-06/1.316, allocations: 4 kB / 0.7467 GB, free: 131.8 MB / 478.1 MB Notification: Performance of Templates: time 0.095/1.412, allocations: 62.79 MB / 0.808 GB, free: 73.5 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