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.001115/0.00112, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001124/0.001124, allocations: 187.1 kB / 18.67 MB, free: 4.434 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.284/1.284, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000998/0.000998, allocations: 39.94 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2742, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02893/0.3032, allocations: 28.58 MB / 430 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01826/0.3215, allocations: 8.388 MB / 438.4 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006389/0.328, allocations: 211.4 kB / 438.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01895/0.347, allocations: 8.169 MB / 446.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.3573, allocations: 2.793 MB / 449.6 MB, free: 8.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006095/0.3635, allocations: 1.85 MB / 451.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01366/0.3771, allocations: 9.976 MB / 461.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03131/0.4085, allocations: 21.35 MB / 482.8 MB, free: 7.188 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008648/0.4172, allocations: 5.361 MB / 488.1 MB, free: 1.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009805/0.4271, allocations: 6.035 MB / 494.1 MB, free: 11.76 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004085/0.4312, allocations: 1.543 MB / 495.7 MB, free: 10.21 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00572/0.4369, allocations: 1.894 MB / 497.6 MB, free: 8.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004494/0.4415, allocations: 2.989 MB / 0.4888 GB, free: 5.324 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009833/0.4513, allocations: 5.848 MB / 0.4946 GB, free: 15.45 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0222/0.4736, allocations: 20.62 MB / 0.5147 GB, free: 10.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.4736, allocations: 4 kB / 0.5147 GB, free: 10.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4736, allocations: 0 / 0.5147 GB, free: 10.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004678/0.4741, allocations: 0 / 0.5147 GB, free: 10.77 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.033/0.5071, allocations: 11.85 MB / 0.5263 GB, free: 14.83 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.5072, allocations: 8.031 kB / 0.5263 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03115/0.5383, allocations: 5.627 MB / 0.5318 GB, free: 9.18 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01236/0.5507, allocations: 6.308 MB / 0.5379 GB, free: 2.812 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006555/0.5514, allocations: 0.6985 MB / 0.5386 GB, free: 2.113 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003553/0.555, allocations: 0.9217 MB / 0.5395 GB, free: 1.191 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4465/1.002, allocations: 15.07 MB / 0.5542 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003643/1.002, allocations: 21.02 kB / 0.5542 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002979/1.005, allocations: 394.6 kB / 0.5546 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006018/1.006, allocations: 0.5094 MB / 0.5551 GB, free: 112.1 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02706/1.033, allocations: 13.74 MB / 0.5685 GB, free: 102.1 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07012/1.103, allocations: 47.1 MB / 0.6145 GB, free: 54.33 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/1.118, allocations: 28.6 MB / 0.6425 GB, free: 22.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004179/1.123, allocations: 3.081 MB / 0.6455 GB, free: 18.95 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003301/1.123, allocations: 240.2 kB / 0.6457 GB, free: 18.69 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/1.123, allocations: 77.3 kB / 0.6458 GB, free: 18.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.731e-06/1.123, allocations: 0 / 0.6458 GB, free: 18.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02492/1.148, allocations: 14.77 MB / 0.6602 GB, free: 3.781 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/1.148, allocations: 102.4 kB / 0.6603 GB, free: 3.668 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004489/1.152, allocations: 3.598 MB / 0.6638 GB, free: 76 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007182/1.153, allocations: 94.16 kB / 0.6639 GB, free: 15.99 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002595/1.156, allocations: 4.034 MB / 0.6678 GB, free: 11.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001616/1.157, allocations: 1.339 MB / 0.6691 GB, free: 10.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001754/1.159, allocations: 1.167 MB / 0.6703 GB, free: 9.422 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.332e-05/1.159, allocations: 301.1 kB / 0.6706 GB, free: 9.125 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003821/1.163, allocations: 2.592 MB / 0.6731 GB, free: 6.527 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005707/1.169, allocations: 5.086 MB / 0.6781 GB, free: 276 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/1.18, allocations: 8.34 MB / 0.6862 GB, free: 6.742 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.113e-05/1.18, allocations: 24 kB / 0.6862 GB, free: 6.719 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01656/1.197, allocations: 8.647 MB / 0.6947 GB, free: 14.04 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 7.664e-05/1.197, allocations: 40 kB / 0.6947 GB, free: 14 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001477/1.197, allocations: 84.88 kB / 0.6948 GB, free: 13.92 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002291/1.199, allocations: 0.8459 MB / 0.6956 GB, free: 13.07 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004934/1.204, allocations: 1.365 MB / 0.697 GB, free: 11.71 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/1.216, allocations: 7.676 MB / 0.7045 GB, free: 3.891 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004995/1.221, allocations: 335.1 kB / 0.7048 GB, free: 3.562 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/1.222, allocations: 308 kB / 0.7051 GB, free: 3.262 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.006757/1.229, allocations: 3.509 MB / 0.7085 GB, free: 15.74 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.23, allocations: 403.1 kB / 0.7089 GB, free: 15.34 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/1.24, allocations: 5.996 MB / 0.7147 GB, free: 9.305 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.194e-05/1.24, allocations: 40 kB / 0.7148 GB, free: 9.266 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/1.24, allocations: 4 kB / 0.7148 GB, free: 9.262 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.464e-05/1.241, allocations: 23.92 kB / 0.7148 GB, free: 9.238 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0271/1.268, allocations: 14.94 MB / 0.7294 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.565e-05/1.268, allocations: 4 kB / 0.7294 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/1.27, allocations: 0.691 MB / 0.7301 GB, free: 9.539 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/1.273, allocations: 0.7131 MB / 0.7308 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004428/1.273, allocations: 83.98 kB / 0.7308 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008907/1.282, allocations: 6.702 MB / 0.7374 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.282, allocations: 11.88 kB / 0.7374 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2837/1.566, allocations: 8.756 MB / 0.746 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/1.568, allocations: 0.8908 MB / 0.7468 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007669/1.569, allocations: 71.81 kB / 0.7469 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001964/1.571, allocations: 183 kB / 0.7471 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000558/1.571, allocations: 267.7 kB / 0.7473 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002106/1.571, allocations: 114.9 kB / 0.7474 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003646/1.575, allocations: 2.411 MB / 0.7498 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.21e-07/1.575, allocations: 0 / 0.7498 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005803/1.581, allocations: 1.55 MB / 0.7513 GB, free: 173.3 MB / 0.5294 GB 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.0007018/1.582, allocations: 260.4 kB / 0.7515 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009276/1.591, allocations: 6.533 MB / 0.7579 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/1.591, allocations: 3.719 kB / 0.7579 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004666/1.596, allocations: 2.945 MB / 0.7608 GB, free: 169.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00471/1.6, allocations: 0.9693 MB / 0.7618 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02663/1.627, allocations: 15.42 MB / 0.7768 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00671/1.634, allocations: 5.792 MB / 0.7825 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/1.635, allocations: 385.4 kB / 0.7828 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/1.635, allocations: 0 / 0.7828 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.1612/1.797, allocations: 151.5 MB / 0.9308 GB, free: 6.977 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