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.001126/0.001126, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001064/0.001064, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.337/1.337, allocations: 222.9 MB / 241.8 MB, free: 13.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 50.95 kB / 300.6 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09562/0.09681, allocations: 49.46 MB / 350.1 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2053/0.3022, allocations: 28.05 MB / 378.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.3203, allocations: 8.323 MB / 386.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007475/0.3278, allocations: 207.9 kB / 386.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01724/0.3451, allocations: 7.714 MB / 394.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.3554, allocations: 2.544 MB / 396.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005715/0.3611, allocations: 1.747 MB / 398.7 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01406/0.3752, allocations: 9.855 MB / 408.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02771/0.4029, allocations: 17.82 MB / 426.4 MB, free: 9.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009123/0.4121, allocations: 4.673 MB / 431 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009167/0.4213, allocations: 5.785 MB / 436.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003798/0.4251, allocations: 1.055 MB / 437.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006502/0.4316, allocations: 1.402 MB / 439.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004307/0.436, allocations: 2.485 MB / 441.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01126/0.4473, allocations: 5.325 MB / 447.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01973/0.467, allocations: 17.9 MB / 465 MB, free: 3.227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.4671, allocations: 7.938 kB / 465 MB, free: 3.219 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4671, allocations: 0 / 465 MB, free: 3.219 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005789/0.4677, allocations: 0 / 465 MB, free: 3.219 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.03628/0.504, allocations: 11.88 MB / 476.9 MB, free: 7.242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.504, allocations: 8.031 kB / 476.9 MB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03092/0.535, allocations: 5.604 MB / 482.5 MB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/0.5487, allocations: 6.121 MB / 488.6 MB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008404/0.5495, allocations: 0.7103 MB / 489.3 MB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003807/0.5534, allocations: 0.9256 MB / 490.2 MB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04013/0.5935, allocations: 15.06 MB / 0.4935 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005637/0.5941, allocations: 19.81 kB / 0.4935 GB, free: 10.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003378/0.5975, allocations: 391.9 kB / 0.4939 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005828/0.5981, allocations: 0.5156 MB / 0.4944 GB, free: 9.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03168/0.6298, allocations: 13.73 MB / 0.5078 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.419/1.049, allocations: 47.63 MB / 0.5543 GB, free: 97.44 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0154/1.064, allocations: 28.59 MB / 0.5822 GB, free: 68.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004189/1.069, allocations: 3.072 MB / 0.5852 GB, free: 67.08 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003209/1.069, allocations: 245 kB / 0.5854 GB, free: 66.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/1.069, allocations: 68.98 kB / 0.5855 GB, free: 66.8 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 5.31e-06/1.069, allocations: 3.812 kB / 0.5855 GB, free: 66.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.0253/1.094, allocations: 14.72 MB / 0.5999 GB, free: 56.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/1.094, allocations: 94.48 kB / 0.6 GB, free: 56.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004704/1.099, allocations: 3.594 MB / 0.6035 GB, free: 52.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004922/1.1, allocations: 85.7 kB / 0.6036 GB, free: 52.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/1.101, allocations: 4.041 MB / 0.6075 GB, free: 48.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001117/1.102, allocations: 1.347 MB / 0.6088 GB, free: 47.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001405/1.104, allocations: 1.16 MB / 0.61 GB, free: 46.17 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.517e-05/1.104, allocations: 305.1 kB / 0.6102 GB, free: 45.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003103/1.107, allocations: 2.588 MB / 0.6128 GB, free: 43.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004065/1.111, allocations: 5.083 MB / 0.6177 GB, free: 37.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00832/1.119, allocations: 8.329 MB / 0.6259 GB, free: 27.51 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.453e-05/1.119, allocations: 27.94 kB / 0.6259 GB, free: 27.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01411/1.134, allocations: 8.632 MB / 0.6343 GB, free: 18.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.873e-05/1.134, allocations: 40 kB / 0.6344 GB, free: 18.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001148/1.134, allocations: 88.06 kB / 0.6344 GB, free: 18.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002113/1.136, allocations: 0.8264 MB / 0.6353 GB, free: 17.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004585/1.141, allocations: 1.365 MB / 0.6366 GB, free: 16.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008557/1.149, allocations: 7.101 MB / 0.6435 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004339/1.154, allocations: 331.2 kB / 0.6438 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009023/1.154, allocations: 316 kB / 0.6441 GB, free: 8.625 MB / 430.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 (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.005845/1.16, allocations: 3.509 MB / 0.6476 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.161, allocations: 407 kB / 0.648 GB, free: 4.699 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009308/1.171, allocations: 5.977 MB / 0.6538 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.199e-05/1.171, allocations: 36 kB / 0.6538 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/1.171, allocations: 8 kB / 0.6538 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.439e-05/1.171, allocations: 23.92 kB / 0.6539 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02847/1.199, allocations: 15.25 MB / 0.6687 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/1.199, allocations: 4 kB / 0.6687 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002744/1.202, allocations: 0.6865 MB / 0.6694 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/1.204, allocations: 0.7016 MB / 0.6701 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003737/1.204, allocations: 91.91 kB / 0.6702 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008375/1.213, allocations: 6.149 MB / 0.6762 GB, free: 7.418 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.213, allocations: 7.938 kB / 0.6762 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01331/1.226, allocations: 8.735 MB / 0.6847 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002298/1.229, allocations: 0.8865 MB / 0.6856 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000923/1.229, allocations: 75.91 kB / 0.6857 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002179/1.232, allocations: 183.8 kB / 0.6858 GB, free: 13.39 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005679/1.232, allocations: 266.7 kB / 0.6861 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002388/1.232, allocations: 116 kB / 0.6862 GB, free: 13.01 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004084/1.237, allocations: 2.412 MB / 0.6886 GB, free: 10.61 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.237, allocations: 0 / 0.6886 GB, free: 10.61 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006848/1.243, allocations: 1.546 MB / 0.6901 GB, free: 9.07 MB / 478.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 (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,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008409/1.244, allocations: 264.4 kB / 0.6903 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01091/1.255, allocations: 6.496 MB / 0.6967 GB, free: 2.316 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/1.255, allocations: 2 kB / 0.6967 GB, free: 2.316 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2014/1.457, allocations: 2.928 MB / 0.6995 GB, free: 157.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006077/1.463, allocations: 0.9011 MB / 0.7004 GB, free: 157.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03918/1.502, allocations: 19.52 MB / 0.7195 GB, free: 149.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008216/1.51, allocations: 5.797 MB / 0.7251 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/1.512, allocations: 381.5 kB / 0.7255 GB, free: 146.8 MB / 478.1 MB Notification: Performance of SimCode: time 2.285e-06/1.512, allocations: 0 / 0.7255 GB, free: 146.8 MB / 478.1 MB Notification: Performance of Templates: time 0.3742/1.886, allocations: 150.6 MB / 0.8726 GB, free: 143.2 MB / 478.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/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