Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 177 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007505/0.0007504, allocations: 90.42 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003001, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2346, allocations: 47.58 MB / 375.1 MB, free: 45.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02104/0.2557, allocations: 25.56 MB / 400.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.2703, allocations: 7.879 MB / 408.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006895/0.2773, allocations: 171.4 kB / 408.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005525/0.2828, allocations: 1.379 MB / 410.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01036/0.2932, allocations: 2.526 MB / 412.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005045/0.2983, allocations: 1.25 MB / 413.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01487/0.3132, allocations: 11.56 MB / 425.4 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03858/0.3518, allocations: 21.01 MB / 446.4 MB, free: 9.129 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007389/0.3593, allocations: 4.022 MB / 450.5 MB, free: 5.094 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009605/0.3689, allocations: 4.697 MB / 455.2 MB, free: 388 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003732/0.3727, allocations: 0.6094 MB / 455.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005764/0.3785, allocations: 0.9566 MB / 456.7 MB, free: 14.81 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004843/0.3834, allocations: 1.97 MB / 458.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01195/0.3954, allocations: 4.641 MB / 463.3 MB, free: 8.168 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02246/0.4179, allocations: 17.84 MB / 481.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.418, allocations: 0 / 481.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.407e-06/0.418, allocations: 0 / 481.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007734/0.4188, allocations: 0 / 481.2 MB, free: 6.281 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03161/0.4504, allocations: 10.24 MB / 491.4 MB, free: 11.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.4505, allocations: 11.97 kB / 491.4 MB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04424/0.4947, allocations: 8.618 MB / 0.4883 GB, free: 3.297 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3357/0.8304, allocations: 5.894 MB / 0.4941 GB, free: 91.18 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005869/0.8311, allocations: 0.748 MB / 0.4948 GB, free: 90.85 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003521/0.8346, allocations: 0.9707 MB / 0.4958 GB, free: 90.54 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03907/0.8737, allocations: 16.49 MB / 0.5119 GB, free: 83.53 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005507/0.8743, allocations: 14.34 kB / 0.5119 GB, free: 83.53 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003086/0.8774, allocations: 411.5 kB / 0.5123 GB, free: 83.22 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005864/0.878, allocations: 0.6087 MB / 0.5129 GB, free: 83.09 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03076/0.9088, allocations: 15.87 MB / 0.5284 GB, free: 68.2 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07178/0.9806, allocations: 52.27 MB / 0.5794 GB, free: 15.11 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02915/1.01, allocations: 52.19 MB / 0.6304 GB, free: 3.984 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005476/1.015, allocations: 3.449 MB / 0.6337 GB, free: 0.5273 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01518/1.031, allocations: 9.408 MB / 0.6429 GB, free: 7.109 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/1.031, allocations: 68.62 kB / 0.643 GB, free: 7.031 MB / 442.8 MB Notification: Performance of pre-optimization done (n=270): time 4.058e-06/1.031, allocations: 4 kB / 0.643 GB, free: 7.027 MB / 442.8 MB Notification: Performance of matching and sorting (n=278): time 0.0249/1.056, allocations: 12.84 MB / 0.6555 GB, free: 10.04 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/1.056, allocations: 81.59 kB / 0.6556 GB, free: 9.945 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007108/1.063, allocations: 4.033 MB / 0.6596 GB, free: 5.887 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004393/1.063, allocations: 69.7 kB / 0.6596 GB, free: 5.812 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002954/1.066, allocations: 4.632 MB / 0.6642 GB, free: 1.156 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001152/1.067, allocations: 0.9995 MB / 0.6651 GB, free: 168 kB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005731/1.068, allocations: 123.9 kB / 0.6652 GB, free: 44 kB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.1927/1.261, allocations: 0.5489 MB / 0.6658 GB, free: 159 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005104/1.266, allocations: 2.423 MB / 0.6682 GB, free: 158.8 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006511/1.272, allocations: 5.573 MB / 0.6736 GB, free: 153.7 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/1.284, allocations: 8.648 MB / 0.682 GB, free: 146.8 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001644/1.284, allocations: 31.44 kB / 0.6821 GB, free: 146.8 MB / 458.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01929/1.304, allocations: 8.688 MB / 0.6906 GB, free: 143.5 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001853/1.304, allocations: 54.25 kB / 0.6906 GB, free: 143.5 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000253/1.304, allocations: 109.6 kB / 0.6907 GB, free: 143.5 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002518/1.307, allocations: 0.8553 MB / 0.6915 GB, free: 143.3 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005122/1.312, allocations: 1.402 MB / 0.6929 GB, free: 143.2 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009174/1.321, allocations: 6.99 MB / 0.6997 GB, free: 139.4 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005265/1.326, allocations: 351.7 kB / 0.7001 GB, free: 139.3 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001177/1.327, allocations: 345.1 kB / 0.7004 GB, free: 139.2 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007401/1.335, allocations: 3.68 MB / 0.704 GB, free: 137.5 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001312/1.336, allocations: 405 kB / 0.7044 GB, free: 137.5 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009508/1.346, allocations: 5.05 MB / 0.7093 GB, free: 133.6 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/1.346, allocations: 28 kB / 0.7093 GB, free: 133.6 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.616e-05/1.346, allocations: 11.25 kB / 0.7094 GB, free: 133.5 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.023e-05/1.346, allocations: 17.91 kB / 0.7094 GB, free: 133.5 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02415/1.37, allocations: 12.18 MB / 0.7213 GB, free: 122.6 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/1.37, allocations: 3.938 kB / 0.7213 GB, free: 122.6 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002225/1.372, allocations: 0.5149 MB / 0.7218 GB, free: 122 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001845/1.374, allocations: 0.6917 MB / 0.7224 GB, free: 121.4 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003401/1.375, allocations: 63.98 kB / 0.7225 GB, free: 121.3 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007329/1.382, allocations: 6.151 MB / 0.7285 GB, free: 115.1 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.382, allocations: 4 kB / 0.7285 GB, free: 115.1 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.392, allocations: 7.286 MB / 0.7356 GB, free: 107.8 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.394, allocations: 0.8277 MB / 0.7364 GB, free: 107 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009849/1.395, allocations: 52 kB / 0.7365 GB, free: 106.9 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/1.397, allocations: 171.3 kB / 0.7367 GB, free: 106.8 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004166/1.398, allocations: 201.9 kB / 0.7368 GB, free: 106.6 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/1.398, allocations: 91.97 kB / 0.7369 GB, free: 106.5 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003998/1.402, allocations: 2.641 MB / 0.7395 GB, free: 103.8 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.71e-07/1.402, allocations: 0 / 0.7395 GB, free: 103.8 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.006581/1.408, allocations: 1.55 MB / 0.741 GB, free: 102.3 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007711/1.409, allocations: 216.8 kB / 0.7412 GB, free: 102.1 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.00961/1.419, allocations: 6.078 MB / 0.7472 GB, free: 95.97 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/1.419, allocations: 4.062 kB / 0.7472 GB, free: 95.97 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003924/1.423, allocations: 2.452 MB / 0.7496 GB, free: 93.5 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007301/1.43, allocations: 0.8935 MB / 0.7504 GB, free: 92.62 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03071/1.461, allocations: 19.3 MB / 0.7693 GB, free: 73.29 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005391/1.466, allocations: 6.013 MB / 0.7752 GB, free: 67.24 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/1.468, allocations: 383.3 kB / 0.7755 GB, free: 66.86 MB / 458.8 MB Notification: Performance of SimCode: time 1.102e-06/1.468, allocations: 0 / 0.7755 GB, free: 66.86 MB / 458.8 MB Notification: Performance of Templates: time 0.3634/1.831, allocations: 153.7 MB / 0.9256 GB, free: 62.74 MB / 458.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches