Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001197/0.001197, allocations: 92.73 kB / 16.93 MB, free: 5.98 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.001348/0.001348, allocations: 179.7 kB / 17.82 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006659/0.000666, allocations: 8 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08678/0.08746, allocations: 47.59 MB / 328.4 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02396/0.1115, allocations: 23.41 MB / 351.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.1272, allocations: 8.13 MB / 359.9 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004128/0.1314, allocations: 171.4 kB / 360.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005178/0.1366, allocations: 1.71 MB / 361.8 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008122/0.1447, allocations: 2.929 MB / 364.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003564/0.1483, allocations: 1.442 MB / 366.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.1588, allocations: 8.333 MB / 374.5 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.173/0.3318, allocations: 17.25 MB / 391.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005377/0.3372, allocations: 3.706 MB / 395.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005438/0.3427, allocations: 4.244 MB / 399.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001289/0.344, allocations: 0.6089 MB / 400.3 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002308/0.3463, allocations: 0.9002 MB / 401.2 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.3477, allocations: 1.907 MB / 403.1 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001787/0.3494, allocations: 2.042 MB / 405.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.3612, allocations: 17.78 MB / 422.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3612, allocations: 0 / 422.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.3612, allocations: 4 kB / 422.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005515/0.3618, allocations: 0 / 422.9 MB, free: 0.9766 MB / 318.1 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.02787/0.3897, allocations: 10.31 MB / 433.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3897, allocations: 8.031 kB / 433.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04723/0.437, allocations: 8.517 MB / 441.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.4507, allocations: 5.834 MB / 447.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007615/0.4515, allocations: 0.7426 MB / 448.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003722/0.4553, allocations: 0.9763 MB / 449.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04293/0.4982, allocations: 16.4 MB / 465.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004323/0.4987, allocations: 15.91 kB / 465.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003058/0.5018, allocations: 412.4 kB / 466.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000776/0.5026, allocations: 0.6067 MB / 466.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03363/0.5362, allocations: 15.88 MB / 482.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09228/0.6285, allocations: 52.21 MB / 0.5223 GB, free: 6.535 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3165/0.9451, allocations: 52.18 MB / 0.5732 GB, free: 72.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01739/0.9625, allocations: 9.613 MB / 0.5826 GB, free: 70.33 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.9626, allocations: 64.66 kB / 0.5827 GB, free: 70.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 4.248e-06/0.9626, allocations: 0 / 0.5827 GB, free: 70.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.02194/0.9845, allocations: 12.85 MB / 0.5952 GB, free: 64.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.9846, allocations: 84.16 kB / 0.5953 GB, free: 64.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004958/0.9896, allocations: 4.002 MB / 0.5992 GB, free: 63.06 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002551/0.9899, allocations: 69.48 kB / 0.5993 GB, free: 63 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001708/0.9916, allocations: 4.62 MB / 0.6038 GB, free: 59.51 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006279/0.9922, allocations: 1.026 MB / 0.6048 GB, free: 58.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/0.9925, allocations: 123.2 kB / 0.6049 GB, free: 58.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002321/0.9927, allocations: 0.5557 MB / 0.6055 GB, free: 58.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003029/0.9958, allocations: 2.461 MB / 0.6079 GB, free: 57.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003885/0.9997, allocations: 5.591 MB / 0.6133 GB, free: 52.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004217/1.004, allocations: 3.755 MB / 0.617 GB, free: 50.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.57e-05/1.004, allocations: 31.28 kB / 0.617 GB, free: 50.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01134/1.015, allocations: 8.784 MB / 0.6256 GB, free: 46.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.266e-05/1.015, allocations: 50.94 kB / 0.6257 GB, free: 46.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/1.016, allocations: 113 kB / 0.6258 GB, free: 46.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001938/1.017, allocations: 0.8524 MB / 0.6266 GB, free: 46.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004206/1.022, allocations: 1.423 MB / 0.628 GB, free: 45.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008357/1.03, allocations: 7.179 MB / 0.635 GB, free: 38.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004456/1.035, allocations: 347.3 kB / 0.6353 GB, free: 38.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006284/1.035, allocations: 348 kB / 0.6357 GB, free: 37.94 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * 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 (742): * Single equations (assignments): 741 * 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.005836/1.041, allocations: 3.684 MB / 0.6393 GB, free: 34.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008963/1.042, allocations: 422.7 kB / 0.6397 GB, free: 33.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007975/1.05, allocations: 5.174 MB / 0.6447 GB, free: 28.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/1.05, allocations: 37.38 kB / 0.6447 GB, free: 28.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/1.05, allocations: 8 kB / 0.6448 GB, free: 28.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.52e-05/1.05, allocations: 15.94 kB / 0.6448 GB, free: 28.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01954/1.07, allocations: 12.39 MB / 0.6569 GB, free: 16.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.07, allocations: 8.422 kB / 0.6569 GB, free: 16.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002194/1.072, allocations: 0.5422 MB / 0.6574 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00176/1.074, allocations: 0.6797 MB / 0.6581 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00023/1.074, allocations: 67.98 kB / 0.6581 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007267/1.081, allocations: 6.313 MB / 0.6643 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.081, allocations: 7.938 kB / 0.6643 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009982/1.091, allocations: 7.842 MB / 0.672 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002551/1.094, allocations: 0.839 MB / 0.6728 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009561/1.095, allocations: 59.98 kB / 0.6728 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.097, allocations: 163.8 kB / 0.673 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004158/1.097, allocations: 213.8 kB / 0.6732 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002058/1.098, allocations: 91.97 kB / 0.6733 GB, free: 14.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004683/1.102, allocations: 2.618 MB / 0.6758 GB, free: 12.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.102, allocations: 0 / 0.6758 GB, free: 12.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006698/1.109, allocations: 1.557 MB / 0.6774 GB, free: 10.68 MB / 446.1 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 (274): * Single equations (assignments): 273 * 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.0007686/1.11, allocations: 234.9 kB / 0.6776 GB, free: 10.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01069/1.12, allocations: 6.169 MB / 0.6836 GB, free: 4.262 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/1.12, allocations: 1.938 kB / 0.6836 GB, free: 4.262 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004267/1.125, allocations: 2.521 MB / 0.6861 GB, free: 1.727 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/1.129, allocations: 0.8462 MB / 0.6869 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1862/1.315, allocations: 19.27 MB / 0.7057 GB, free: 145.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007176/1.323, allocations: 6.363 MB / 0.7119 GB, free: 144.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005355/1.328, allocations: 1.982 MB / 0.7139 GB, free: 144.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008639/1.329, allocations: 329.5 kB / 0.7142 GB, free: 144.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.352e-06/1.329, allocations: 0 / 0.7142 GB, free: 144.4 MB / 462.1 MB Notification: Performance of Templates: time 0.07957/1.408, allocations: 54.87 MB / 0.7678 GB, free: 110.6 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_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_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches