Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 92.84 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001863/0.001864, allocations: 204.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000215/0.000215, allocations: 4 kB / 306.6 MB, free: 1.613 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.08843, allocations: 51.49 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1666/0.2551, allocations: 22.96 MB / 381 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.2685, allocations: 8.037 MB / 389.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004384/0.2729, allocations: 182.2 kB / 389.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005591/0.2785, allocations: 1.691 MB / 391 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.2888, allocations: 2.768 MB / 393.7 MB, free: 1.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004721/0.2935, allocations: 1.451 MB / 395.2 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01243/0.3059, allocations: 8.071 MB / 403.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02843/0.3344, allocations: 17.18 MB / 420.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005961/0.3404, allocations: 3.543 MB / 424 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007478/0.3479, allocations: 4.015 MB / 428 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001914/0.3498, allocations: 0.5938 MB / 428.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003795/0.3536, allocations: 0.9136 MB / 429.5 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.3557, allocations: 1.744 MB / 431.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002615/0.3584, allocations: 1.962 MB / 433.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01571/0.3741, allocations: 17.38 MB / 450.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3741, allocations: 0 / 450.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3741, allocations: 0 / 450.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004779/0.3746, allocations: 0 / 450.6 MB, free: 15.94 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.02517/0.3998, allocations: 9.883 MB / 460.4 MB, free: 5.965 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3998, allocations: 12.03 kB / 460.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02935/0.4292, allocations: 5.529 MB / 466 MB, free: 416 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0127/0.4419, allocations: 6.071 MB / 472.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005406/0.4425, allocations: 0.7024 MB / 472.8 MB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002354/0.4449, allocations: 0.9295 MB / 473.7 MB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02757/0.4724, allocations: 14.91 MB / 488.6 MB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001916/0.4727, allocations: 27.78 kB / 488.6 MB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.4737, allocations: 388 kB / 489 MB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004727/0.4741, allocations: 0.5116 MB / 489.5 MB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02559/0.4997, allocations: 13.66 MB / 0.4914 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.261/0.7607, allocations: 48.12 MB / 0.5384 GB, free: 109.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01712/0.7779, allocations: 28.52 MB / 0.5662 GB, free: 84.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005615/0.7785, allocations: 324.6 kB / 0.5665 GB, free: 83.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.101e-05/0.7786, allocations: 77.17 kB / 0.5666 GB, free: 83.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.783e-06/0.7786, allocations: 0 / 0.5666 GB, free: 83.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02549/0.8041, allocations: 14.61 MB / 0.5809 GB, free: 81.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.8041, allocations: 91.08 kB / 0.581 GB, free: 81.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/0.8083, allocations: 3.544 MB / 0.5844 GB, free: 81.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003144/0.8086, allocations: 88.23 kB / 0.5845 GB, free: 81.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001741/0.8104, allocations: 4.052 MB / 0.5885 GB, free: 77.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009113/0.8113, allocations: 1.341 MB / 0.5898 GB, free: 76.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.8115, allocations: 119.4 kB / 0.5899 GB, free: 76.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002198/0.8118, allocations: 0.5452 MB / 0.5904 GB, free: 76.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003097/0.8149, allocations: 2.578 MB / 0.5929 GB, free: 75.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004044/0.8189, allocations: 5.037 MB / 0.5979 GB, free: 71.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004105/0.823, allocations: 3.776 MB / 0.6016 GB, free: 69.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.209e-05/0.8231, allocations: 23.81 kB / 0.6016 GB, free: 69.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0113/0.8344, allocations: 8.592 MB / 0.61 GB, free: 66.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.8345, allocations: 43.84 kB / 0.61 GB, free: 66.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.782e-05/0.8346, allocations: 79.56 kB / 0.6101 GB, free: 66.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001969/0.8365, allocations: 0.8239 MB / 0.6109 GB, free: 65.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004292/0.8409, allocations: 1.386 MB / 0.6122 GB, free: 65.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008411/0.8493, allocations: 7.16 MB / 0.6192 GB, free: 60.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/0.8536, allocations: 327.3 kB / 0.6195 GB, free: 60.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006848/0.8543, allocations: 308 kB / 0.6198 GB, free: 59.72 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (724): * Single equations (assignments): 723 * 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.005012/0.8594, allocations: 3.521 MB / 0.6233 GB, free: 56.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008218/0.8602, allocations: 415 kB / 0.6237 GB, free: 55.78 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008222/0.8684, allocations: 5.986 MB / 0.6295 GB, free: 49.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.8685, allocations: 40 kB / 0.6296 GB, free: 49.72 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.8685, allocations: 4 kB / 0.6296 GB, free: 49.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.19e-05/0.8685, allocations: 23.92 kB / 0.6296 GB, free: 49.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/0.8889, allocations: 14.85 MB / 0.6441 GB, free: 34.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.889, allocations: 8 kB / 0.6441 GB, free: 34.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002564/0.8915, allocations: 0.6982 MB / 0.6448 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0017/0.8932, allocations: 0.6956 MB / 0.6455 GB, free: 33.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000194/0.8934, allocations: 79.98 kB / 0.6455 GB, free: 33.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006958/0.9004, allocations: 6.329 MB / 0.6517 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.9004, allocations: 8 kB / 0.6517 GB, free: 26.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/0.9106, allocations: 9.169 MB / 0.6607 GB, free: 17.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/0.9124, allocations: 0.8941 MB / 0.6615 GB, free: 16.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004927/0.9129, allocations: 78.5 kB / 0.6616 GB, free: 16.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.9145, allocations: 183.9 kB / 0.6618 GB, free: 16.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003819/0.9149, allocations: 266.6 kB / 0.662 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/0.9151, allocations: 116 kB / 0.6622 GB, free: 15.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002872/0.918, allocations: 2.369 MB / 0.6645 GB, free: 13.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.918, allocations: 0 / 0.6645 GB, free: 13.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004968/0.923, allocations: 1.55 MB / 0.666 GB, free: 11.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (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.0005001/0.9235, allocations: 257.4 kB / 0.6662 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007928/0.9314, allocations: 6.485 MB / 0.6726 GB, free: 5.164 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.9315, allocations: 4 kB / 0.6726 GB, free: 5.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003464/0.9349, allocations: 2.91 MB / 0.6754 GB, free: 2.242 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/0.9384, allocations: 0.8633 MB / 0.6763 GB, free: 1.398 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02626/0.9646, allocations: 18.9 MB / 0.6947 GB, free: 14.41 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00669/0.9713, allocations: 6.123 MB / 0.7007 GB, free: 8.238 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005855/0.9772, allocations: 1.881 MB / 0.7025 GB, free: 6.352 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001191/0.9784, allocations: 347.4 kB / 0.7029 GB, free: 6.012 MB / 478.1 MB Notification: Performance of SimCode: time 9.41e-07/0.9785, allocations: 0 / 0.7029 GB, free: 6.012 MB / 478.1 MB Notification: Performance of Templates: time 0.2621/1.241, allocations: 58.14 MB / 0.7596 GB, free: 134.1 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches