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.001531/0.001532, allocations: 106.3 kB / 17.74 MB, free: 5.336 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.001338/0.001338, allocations: 185.4 kB / 18.67 MB, free: 4.418 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.288/1.288, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00094/0.00094, allocations: 47.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1988, allocations: 49.44 MB / 401.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02772/0.2265, allocations: 28.57 MB / 430 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.24, allocations: 8.388 MB / 438.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003338/0.2433, allocations: 219.3 kB / 438.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01703/0.2604, allocations: 8.224 MB / 446.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007357/0.2678, allocations: 2.848 MB / 449.7 MB, free: 8.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004416/0.2722, allocations: 1.851 MB / 451.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.2824, allocations: 9.974 MB / 461.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02633/0.3088, allocations: 21.35 MB / 482.9 MB, free: 7.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006235/0.315, allocations: 5.373 MB / 488.3 MB, free: 1.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007989/0.323, allocations: 6.035 MB / 494.3 MB, free: 11.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002688/0.3257, allocations: 1.543 MB / 495.8 MB, free: 10.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00356/0.3293, allocations: 1.89 MB / 497.7 MB, free: 8.199 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002335/0.3317, allocations: 2.985 MB / 0.489 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00551/0.3372, allocations: 5.848 MB / 0.4947 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01704/0.3542, allocations: 20.62 MB / 0.5148 GB, free: 10.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3543, allocations: 4 kB / 0.5148 GB, free: 10.65 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3543, allocations: 0 / 0.5148 GB, free: 10.65 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003107/0.3546, allocations: 0 / 0.5148 GB, free: 10.65 MB / 446.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.02834/0.3829, allocations: 11.84 MB / 0.5264 GB, free: 14.72 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.383, allocations: 8.031 kB / 0.5264 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03132/0.4143, allocations: 5.627 MB / 0.5319 GB, free: 9.066 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.426, allocations: 6.308 MB / 0.538 GB, free: 2.699 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000604/0.4267, allocations: 0.6985 MB / 0.5387 GB, free: 2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002503/0.4292, allocations: 0.9217 MB / 0.5396 GB, free: 1.078 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3296/0.7588, allocations: 15.07 MB / 0.5543 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001752/0.759, allocations: 20.86 kB / 0.5544 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009224/0.7599, allocations: 390.8 kB / 0.5547 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004405/0.7604, allocations: 0.5123 MB / 0.5552 GB, free: 112.1 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/0.7776, allocations: 13.74 MB / 0.5687 GB, free: 102 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04603/0.8236, allocations: 47.1 MB / 0.6146 GB, free: 54.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01352/0.8372, allocations: 28.61 MB / 0.6426 GB, free: 21.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003381/0.8406, allocations: 3.077 MB / 0.6456 GB, free: 18.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/0.8408, allocations: 240.1 kB / 0.6458 GB, free: 18.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.8409, allocations: 73.58 kB / 0.6459 GB, free: 18.53 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.811e-06/0.8409, allocations: 0 / 0.6459 GB, free: 18.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02323/0.8641, allocations: 14.77 MB / 0.6603 GB, free: 3.699 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.8642, allocations: 94.42 kB / 0.6604 GB, free: 3.594 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.8678, allocations: 3.598 MB / 0.6639 GB, free: 0 / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002342/0.8681, allocations: 89.7 kB / 0.664 GB, free: 15.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002207/0.8703, allocations: 4.042 MB / 0.668 GB, free: 11.84 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009125/0.8712, allocations: 1.339 MB / 0.6693 GB, free: 10.51 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001517/0.8728, allocations: 1.163 MB / 0.6704 GB, free: 9.336 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.405e-05/0.8728, allocations: 309.1 kB / 0.6707 GB, free: 9.031 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003583/0.8764, allocations: 2.596 MB / 0.6732 GB, free: 6.43 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005039/0.8815, allocations: 5.083 MB / 0.6782 GB, free: 180 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009242/0.8907, allocations: 8.34 MB / 0.6863 GB, free: 6.648 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-05/0.8908, allocations: 24 kB / 0.6864 GB, free: 6.625 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01304/0.9038, allocations: 8.631 MB / 0.6948 GB, free: 13.96 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 5.542e-05/0.9039, allocations: 44 kB / 0.6948 GB, free: 13.92 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.379e-05/0.904, allocations: 84.03 kB / 0.6949 GB, free: 13.84 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002281/0.9063, allocations: 0.8574 MB / 0.6957 GB, free: 12.98 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004426/0.9107, allocations: 1.365 MB / 0.6971 GB, free: 11.62 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.9214, allocations: 7.68 MB / 0.7046 GB, free: 3.801 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003592/0.925, allocations: 335.2 kB / 0.7049 GB, free: 3.473 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004572/0.9255, allocations: 304 kB / 0.7052 GB, free: 3.176 MB / 0.4982 GB 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.004838/0.9304, allocations: 3.511 MB / 0.7086 GB, free: 15.65 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007671/0.9311, allocations: 407.1 kB / 0.709 GB, free: 15.25 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009877/0.941, allocations: 5.98 MB / 0.7148 GB, free: 9.234 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.73e-05/0.9411, allocations: 23.86 kB / 0.7149 GB, free: 9.211 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.9411, allocations: 4 kB / 0.7149 GB, free: 9.207 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001766/0.9429, allocations: 0.8941 MB / 0.7157 GB, free: 8.289 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005308/0.9434, allocations: 71.94 kB / 0.7158 GB, free: 8.219 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/0.9452, allocations: 183.8 kB / 0.716 GB, free: 8.039 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004579/0.9456, allocations: 266.9 kB / 0.7162 GB, free: 7.777 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009293/0.9549, allocations: 5.595 MB / 0.7217 GB, free: 2.234 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0099/0.9649, allocations: 7.418 MB / 0.729 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002834/0.9677, allocations: 2.263 MB / 0.7312 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00334/0.9711, allocations: 2.412 MB / 0.7335 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of Backend: time 4.31e-07/0.9711, allocations: 0 / 0.7335 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008606/0.9797, allocations: 4.903 MB / 0.7383 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of SimCode: time 0.1864/1.166, allocations: 14.98 MB / 0.7529 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.08949/1.256, allocations: 71.95 MB / 0.8232 GB, free: 121.7 MB / 0.5294 GB 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/jenkins1/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/jenkins1/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