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.001381/0.001381, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001562/0.001562, allocations: 191 kB / 18 MB, free: 5.105 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.321/1.321, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000988/0.0009883, allocations: 47.94 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2313, allocations: 49.43 MB / 400.8 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02779/0.2591, allocations: 28.58 MB / 429.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01546/0.2746, allocations: 8.396 MB / 437.7 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004961/0.2796, allocations: 211.4 kB / 437.9 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01776/0.2974, allocations: 8.228 MB / 446.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009037/0.3065, allocations: 2.84 MB / 449 MB, free: 8.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005089/0.3116, allocations: 1.854 MB / 450.9 MB, free: 6.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01131/0.3229, allocations: 9.975 MB / 460.8 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0292/0.3521, allocations: 21.36 MB / 482.2 MB, free: 7.066 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008028/0.3602, allocations: 5.369 MB / 487.6 MB, free: 1.684 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00915/0.3694, allocations: 6.031 MB / 493.6 MB, free: 11.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003407/0.3728, allocations: 1.539 MB / 495.1 MB, free: 10.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004668/0.3775, allocations: 1.902 MB / 497 MB, free: 8.191 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003711/0.3812, allocations: 2.985 MB / 0.4883 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007984/0.3892, allocations: 5.845 MB / 0.494 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01734/0.4066, allocations: 20.62 MB / 0.5141 GB, free: 10.65 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4066, allocations: 0 / 0.5141 GB, free: 10.65 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4066, allocations: 4 kB / 0.5141 GB, free: 10.65 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003682/0.407, allocations: 0 / 0.5141 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.02898/0.436, allocations: 11.85 MB / 0.5257 GB, free: 14.71 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.436, allocations: 8.031 kB / 0.5257 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02842/0.4645, allocations: 5.623 MB / 0.5312 GB, free: 9.062 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01295/0.4775, allocations: 6.308 MB / 0.5374 GB, free: 2.695 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006841/0.4782, allocations: 0.7024 MB / 0.5381 GB, free: 1.992 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003328/0.4815, allocations: 0.9218 MB / 0.539 GB, free: 1.07 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4372/0.9187, allocations: 15.06 MB / 0.5537 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003266/0.9191, allocations: 25.3 kB / 0.5537 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002155/0.9212, allocations: 390.6 kB / 0.5541 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000546/0.9218, allocations: 0.51 MB / 0.5546 GB, free: 112.1 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02481/0.9466, allocations: 13.75 MB / 0.568 GB, free: 102 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05889/1.006, allocations: 47.1 MB / 0.614 GB, free: 54.24 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01374/1.019, allocations: 28.6 MB / 0.6419 GB, free: 21.95 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003605/1.023, allocations: 3.085 MB / 0.6449 GB, free: 18.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003224/1.023, allocations: 239.9 kB / 0.6452 GB, free: 18.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/1.023, allocations: 73.58 kB / 0.6452 GB, free: 18.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.501e-06/1.023, allocations: 0 / 0.6452 GB, free: 18.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02473/1.048, allocations: 14.78 MB / 0.6597 GB, free: 3.684 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/1.048, allocations: 94.42 kB / 0.6597 GB, free: 3.578 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004724/1.053, allocations: 3.599 MB / 0.6633 GB, free: 15.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002435/1.053, allocations: 85.7 kB / 0.6633 GB, free: 15.89 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002469/1.056, allocations: 4.038 MB / 0.6673 GB, free: 11.83 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/1.057, allocations: 1.343 MB / 0.6686 GB, free: 10.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00177/1.058, allocations: 1.16 MB / 0.6697 GB, free: 9.324 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.716e-05/1.059, allocations: 301.1 kB / 0.67 GB, free: 9.027 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003871/1.062, allocations: 2.592 MB / 0.6725 GB, free: 6.43 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005419/1.068, allocations: 5.086 MB / 0.6775 GB, free: 176 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009953/1.078, allocations: 8.34 MB / 0.6857 GB, free: 6.645 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-05/1.078, allocations: 24 kB / 0.6857 GB, free: 6.621 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01418/1.092, allocations: 8.643 MB / 0.6941 GB, free: 13.95 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.825e-05/1.092, allocations: 40.88 kB / 0.6942 GB, free: 13.91 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/1.092, allocations: 84 kB / 0.6942 GB, free: 13.83 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00238/1.095, allocations: 0.8459 MB / 0.6951 GB, free: 12.98 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004894/1.1, allocations: 1.369 MB / 0.6964 GB, free: 11.61 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/1.111, allocations: 7.676 MB / 0.7039 GB, free: 3.793 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004337/1.115, allocations: 339.1 kB / 0.7042 GB, free: 3.461 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009556/1.116, allocations: 308 kB / 0.7045 GB, free: 3.16 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.006094/1.122, allocations: 3.509 MB / 0.7079 GB, free: 15.64 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00119/1.123, allocations: 407 kB / 0.7083 GB, free: 15.25 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/1.135, allocations: 5.996 MB / 0.7142 GB, free: 9.211 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.404e-05/1.135, allocations: 40 kB / 0.7142 GB, free: 9.172 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/1.135, allocations: 8 kB / 0.7142 GB, free: 9.164 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.203e-05/1.135, allocations: 23.92 kB / 0.7143 GB, free: 9.141 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0264/1.162, allocations: 14.94 MB / 0.7288 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.19e-05/1.162, allocations: 4.625 kB / 0.7288 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00274/1.164, allocations: 0.7021 MB / 0.7295 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/1.166, allocations: 0.7092 MB / 0.7302 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002823/1.167, allocations: 83.98 kB / 0.7303 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008991/1.176, allocations: 6.698 MB / 0.7368 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/1.176, allocations: 11.94 kB / 0.7369 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.216/1.392, allocations: 8.761 MB / 0.7454 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001786/1.394, allocations: 0.8794 MB / 0.7463 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004732/1.394, allocations: 74.06 kB / 0.7463 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001637/1.396, allocations: 189.8 kB / 0.7465 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004276/1.396, allocations: 263.8 kB / 0.7468 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002044/1.396, allocations: 111 kB / 0.7469 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002897/1.399, allocations: 2.418 MB / 0.7492 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.399, allocations: 0 / 0.7492 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004564/1.404, allocations: 1.548 MB / 0.7508 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.0004891/1.404, allocations: 261.5 kB / 0.751 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008228/1.413, allocations: 6.529 MB / 0.7574 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/1.413, allocations: 3.969 kB / 0.7574 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004127/1.417, allocations: 2.951 MB / 0.7603 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.003802/1.421, allocations: 0.9661 MB / 0.7612 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02063/1.441, allocations: 15.68 MB / 0.7765 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004721/1.446, allocations: 5.969 MB / 0.7824 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004162/1.45, allocations: 1.882 MB / 0.7842 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008816/1.451, allocations: 345.7 kB / 0.7845 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of SimCode: time 7.51e-07/1.451, allocations: 0 / 0.7845 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.08181/1.533, allocations: 60 MB / 0.8431 GB, free: 96.42 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/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