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.001154/0.001154, allocations: 106.8 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001237, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 54.59 kB / 306.3 MB, free: 1.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1073, allocations: 50.53 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2224/0.3298, allocations: 28.11 MB / 384.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.3438, allocations: 8.411 MB / 393.3 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004124/0.3479, allocations: 208.3 kB / 393.5 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01634/0.3643, allocations: 7.719 MB / 401.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009677/0.374, allocations: 2.547 MB / 403.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005952/0.3799, allocations: 1.775 MB / 405.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01306/0.393, allocations: 9.93 MB / 415.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02698/0.42, allocations: 17.82 MB / 433.3 MB, free: 232 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006318/0.4264, allocations: 4.685 MB / 438 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008858/0.4352, allocations: 5.804 MB / 443.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002985/0.4383, allocations: 1.047 MB / 444.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004813/0.4431, allocations: 1.425 MB / 446.3 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003435/0.4465, allocations: 2.485 MB / 448.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009212/0.4558, allocations: 5.329 MB / 454.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02082/0.4766, allocations: 20.2 MB / 474.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.4767, allocations: 0 / 474.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4767, allocations: 0 / 474.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005435/0.4772, allocations: 0 / 474.3 MB, free: 7.133 MB / 382.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.0334/0.5106, allocations: 11.91 MB / 486.2 MB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.5107, allocations: 8.031 kB / 486.2 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03134/0.542, allocations: 5.608 MB / 491.8 MB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01234/0.5544, allocations: 6.129 MB / 498 MB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006836/0.5551, allocations: 0.7025 MB / 498.7 MB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00325/0.5584, allocations: 0.9334 MB / 499.6 MB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03548/0.5939, allocations: 15.06 MB / 0.5026 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005138/0.5944, allocations: 19.81 kB / 0.5026 GB, free: 14.51 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003934/0.5984, allocations: 396 kB / 0.503 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006554/0.5991, allocations: 0.5117 MB / 0.5035 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.027/0.6261, allocations: 13.73 MB / 0.5169 GB, free: 15.85 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3862/1.012, allocations: 48.04 MB / 0.5638 GB, free: 108.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01472/1.027, allocations: 28.57 MB / 0.5917 GB, free: 79.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004446/1.032, allocations: 3.079 MB / 0.5947 GB, free: 77.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005187/1.032, allocations: 316.4 kB / 0.595 GB, free: 77.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.919e-05/1.032, allocations: 84.91 kB / 0.5951 GB, free: 77.37 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 7.635e-06/1.032, allocations: 0 / 0.5951 GB, free: 77.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02532/1.058, allocations: 14.72 MB / 0.6095 GB, free: 68.99 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/1.058, allocations: 95.97 kB / 0.6096 GB, free: 68.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005056/1.063, allocations: 3.598 MB / 0.6131 GB, free: 66.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003525/1.063, allocations: 89.7 kB / 0.6132 GB, free: 66.42 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/1.065, allocations: 4.045 MB / 0.6171 GB, free: 62.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008138/1.065, allocations: 1.341 MB / 0.6184 GB, free: 61.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/1.067, allocations: 1.167 MB / 0.6196 GB, free: 59.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.339e-05/1.067, allocations: 301.1 kB / 0.6199 GB, free: 59.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003096/1.07, allocations: 2.584 MB / 0.6224 GB, free: 56.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003896/1.074, allocations: 5.085 MB / 0.6273 GB, free: 50.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007267/1.081, allocations: 8.333 MB / 0.6355 GB, free: 41.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.961e-05/1.081, allocations: 24 kB / 0.6355 GB, free: 41.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01113/1.092, allocations: 8.632 MB / 0.6439 GB, free: 32.49 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.78e-05/1.092, allocations: 40 kB / 0.644 GB, free: 32.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.67e-05/1.092, allocations: 91.92 kB / 0.6441 GB, free: 32.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002179/1.095, allocations: 0.8384 MB / 0.6449 GB, free: 31.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004042/1.099, allocations: 1.369 MB / 0.6462 GB, free: 30.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008114/1.107, allocations: 7.106 MB / 0.6532 GB, free: 22.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003424/1.11, allocations: 327.3 kB / 0.6535 GB, free: 22.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004747/1.111, allocations: 303.9 kB / 0.6538 GB, free: 22.29 MB / 446.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.00431/1.115, allocations: 3.513 MB / 0.6572 GB, free: 18.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007975/1.116, allocations: 407 kB / 0.6576 GB, free: 18.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00861/1.124, allocations: 5.977 MB / 0.6634 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/1.125, allocations: 43.98 kB / 0.6635 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/1.125, allocations: 8 kB / 0.6635 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.89e-05/1.125, allocations: 19.92 kB / 0.6635 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02156/1.146, allocations: 15.26 MB / 0.6784 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/1.146, allocations: 4 kB / 0.6784 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002787/1.149, allocations: 0.6904 MB / 0.6791 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/1.151, allocations: 0.6942 MB / 0.6797 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002633/1.151, allocations: 87.97 kB / 0.6798 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008358/1.16, allocations: 6.149 MB / 0.6858 GB, free: 5.066 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.16, allocations: 7.938 kB / 0.6858 GB, free: 5.059 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/1.172, allocations: 8.728 MB / 0.6944 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/1.174, allocations: 0.8824 MB / 0.6952 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007287/1.175, allocations: 76 kB / 0.6953 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/1.177, allocations: 179.9 kB / 0.6955 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000515/1.177, allocations: 266.6 kB / 0.6957 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002384/1.178, allocations: 127.9 kB / 0.6958 GB, free: 10.66 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003405/1.181, allocations: 2.412 MB / 0.6982 GB, free: 8.266 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.181, allocations: 0 / 0.6982 GB, free: 8.266 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00523/1.186, allocations: 1.56 MB / 0.6997 GB, free: 6.711 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.0005568/1.187, allocations: 274.8 kB / 0.7 GB, free: 6.441 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1801/1.367, allocations: 6.486 MB / 0.7063 GB, free: 153.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/1.367, allocations: 1.5 kB / 0.7063 GB, free: 153.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00574/1.373, allocations: 2.943 MB / 0.7092 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00475/1.378, allocations: 0.9095 MB / 0.7101 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03084/1.408, allocations: 19.8 MB / 0.7294 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005619/1.414, allocations: 5.971 MB / 0.7352 GB, free: 140.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005338/1.419, allocations: 1.884 MB / 0.7371 GB, free: 140.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/1.42, allocations: 344.7 kB / 0.7374 GB, free: 140.6 MB / 478.1 MB Notification: Performance of SimCode: time 7.32e-07/1.421, allocations: 0 / 0.7374 GB, free: 140.6 MB / 478.1 MB Notification: Performance of Templates: time 0.08825/1.509, allocations: 60.8 MB / 0.7968 GB, free: 88.14 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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