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.001112/0.001112, allocations: 88.39 kB / 16.31 MB, free: 6.457 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.00138/0.00138, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.437/1.437, allocations: 223.3 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002288/0.0002289, allocations: 6.156 kB / 300.8 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08209/0.08233, allocations: 50.42 MB / 351.3 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0246/0.107, allocations: 24.88 MB / 376.1 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.1229, allocations: 7.736 MB / 383.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004555/0.1275, allocations: 195.4 kB / 384.1 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004893/0.1325, allocations: 1.348 MB / 385.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007725/0.1402, allocations: 2.291 MB / 387.7 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004289/0.1445, allocations: 1.219 MB / 388.9 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01323/0.1578, allocations: 10.85 MB / 399.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03294/0.1907, allocations: 17.37 MB / 417.1 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006444/0.1972, allocations: 3.82 MB / 421 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007758/0.205, allocations: 4.393 MB / 425.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002244/0.2073, allocations: 0.5977 MB / 426 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.183/0.3904, allocations: 0.9411 MB / 426.9 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002861/0.3933, allocations: 1.797 MB / 428.7 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003931/0.3972, allocations: 1.955 MB / 430.6 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01617/0.4134, allocations: 17.41 MB / 448.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4134, allocations: 0 / 448.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.4135, allocations: 0 / 448.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00061/0.4141, allocations: 4.125 kB / 448.1 MB, free: 13.81 MB / 350.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.02813/0.4422, allocations: 9.889 MB / 457.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.4423, allocations: 12.5 kB / 458 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02945/0.4717, allocations: 5.636 MB / 463.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.484, allocations: 6.044 MB / 469.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006617/0.4847, allocations: 0.7047 MB / 470.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003483/0.4882, allocations: 0.9223 MB / 471.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03927/0.5275, allocations: 15 MB / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004305/0.528, allocations: 26.28 kB / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002876/0.5309, allocations: 391.3 kB / 486.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000574/0.5314, allocations: 0.5121 MB / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0286/0.5601, allocations: 13.66 MB / 0.4891 GB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0879/0.648, allocations: 47.75 MB / 0.5357 GB, free: 3.547 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02189/0.6699, allocations: 28.54 MB / 0.5636 GB, free: 3.309 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005571/0.6756, allocations: 3.062 MB / 0.5666 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000513/0.6761, allocations: 242.3 kB / 0.5668 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.139e-05/0.6762, allocations: 77.56 kB / 0.5669 GB, free: 15.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.931e-06/0.6762, allocations: 0 / 0.5669 GB, free: 15.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03587/0.7121, allocations: 15.58 MB / 0.5821 GB, free: 272 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.7122, allocations: 102.5 kB / 0.5822 GB, free: 156 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1887/0.9009, allocations: 3.564 MB / 0.5857 GB, free: 152.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000624/0.9016, allocations: 91.22 kB / 0.5858 GB, free: 152.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0019/0.9035, allocations: 4.034 MB / 0.5897 GB, free: 150.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/0.9047, allocations: 1.345 MB / 0.591 GB, free: 149.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002859/0.905, allocations: 120 kB / 0.5911 GB, free: 149.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002473/0.9052, allocations: 0.5461 MB / 0.5917 GB, free: 149.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003248/0.9085, allocations: 2.569 MB / 0.5942 GB, free: 148.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004466/0.9129, allocations: 5.058 MB / 0.5991 GB, free: 144.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004482/0.9174, allocations: 3.765 MB / 0.6028 GB, free: 143.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.444e-05/0.9175, allocations: 23.31 kB / 0.6028 GB, free: 143.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01357/0.9311, allocations: 8.569 MB / 0.6112 GB, free: 139.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.027e-05/0.9312, allocations: 43.69 kB / 0.6112 GB, free: 139.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001132/0.9313, allocations: 82.19 kB / 0.6113 GB, free: 139.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.9332, allocations: 0.8524 MB / 0.6121 GB, free: 139.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/0.9378, allocations: 1.362 MB / 0.6135 GB, free: 139.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008402/0.9463, allocations: 7.103 MB / 0.6204 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004765/0.9511, allocations: 325.6 kB / 0.6207 GB, free: 133.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006841/0.9518, allocations: 307.4 kB / 0.621 GB, free: 133.2 MB / 462.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 (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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005914/0.9577, allocations: 3.507 MB / 0.6244 GB, free: 130.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009236/0.9586, allocations: 411.4 kB / 0.6248 GB, free: 129.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008572/0.9672, allocations: 5.961 MB / 0.6307 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.343e-05/0.9672, allocations: 40 kB / 0.6307 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.9673, allocations: 11.5 kB / 0.6307 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.222e-05/0.9673, allocations: 26.97 kB / 0.6307 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02098/0.9883, allocations: 15.23 MB / 0.6456 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.9883, allocations: 4.625 kB / 0.6456 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002383/0.9907, allocations: 0.6904 MB / 0.6463 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.9923, allocations: 0.6897 MB / 0.647 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002015/0.9925, allocations: 87.98 kB / 0.647 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006673/0.9992, allocations: 6.155 MB / 0.653 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.9992, allocations: 7.938 kB / 0.6531 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/1.01, allocations: 8.674 MB / 0.6615 GB, free: 93.58 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002261/1.012, allocations: 0.8942 MB / 0.6624 GB, free: 92.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009463/1.013, allocations: 75.98 kB / 0.6625 GB, free: 92.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001931/1.015, allocations: 189.1 kB / 0.6627 GB, free: 92.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000415/1.016, allocations: 274.6 kB / 0.6629 GB, free: 92.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002078/1.016, allocations: 112 kB / 0.663 GB, free: 92.03 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00351/1.019, allocations: 2.384 MB / 0.6653 GB, free: 89.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.019, allocations: 0 / 0.6653 GB, free: 89.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005627/1.025, allocations: 1.543 MB / 0.6669 GB, free: 88.12 MB / 462.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 (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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006764/1.026, allocations: 268.7 kB / 0.6671 GB, free: 87.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009135/1.035, allocations: 6.452 MB / 0.6734 GB, free: 81.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.035, allocations: 4 kB / 0.6734 GB, free: 81.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003853/1.039, allocations: 2.933 MB / 0.6763 GB, free: 78.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004657/1.043, allocations: 0.9136 MB / 0.6772 GB, free: 77.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0251/1.068, allocations: 18.97 MB / 0.6957 GB, free: 58.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006544/1.075, allocations: 5.971 MB / 0.7015 GB, free: 52.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006573/1.082, allocations: 1.877 MB / 0.7034 GB, free: 50.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/1.083, allocations: 351.4 kB / 0.7037 GB, free: 50.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/1.083, allocations: 1.859 kB / 0.7037 GB, free: 50.25 MB / 462.1 MB Notification: Performance of Templates: time 0.2761/1.359, allocations: 58.33 MB / 0.7607 GB, free: 131.1 MB / 462.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