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.0007668/0.0007668, allocations: 102.1 kB / 17.01 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008391/0.0008391, allocations: 192.7 kB / 17.91 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.7 MB / 246.4 MB, free: 9.801 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002888, allocations: 4 kB / 307.1 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09458, allocations: 51.51 MB / 358.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1832/0.2778, allocations: 24.91 MB / 383.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.2931, allocations: 7.809 MB / 391.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005227/0.2984, allocations: 193.5 kB / 391.6 MB, free: 2.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004768/0.3032, allocations: 1.36 MB / 392.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008376/0.3116, allocations: 2.289 MB / 395.2 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004262/0.3159, allocations: 1.248 MB / 396.5 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01484/0.3307, allocations: 10.93 MB / 407.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03399/0.3648, allocations: 17.37 MB / 424.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007408/0.3722, allocations: 3.835 MB / 428.6 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007252/0.3795, allocations: 4.401 MB / 433 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001932/0.3815, allocations: 0.5977 MB / 433.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004453/0.3859, allocations: 0.9645 MB / 434.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002447/0.3884, allocations: 1.798 MB / 436.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003973/0.3924, allocations: 1.962 MB / 438.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01879/0.4112, allocations: 17.42 MB / 455.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.4112, allocations: 0 / 455.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4113, allocations: 0 / 455.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005761/0.4118, allocations: 0 / 455.7 MB, free: 10.61 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.02864/0.4405, allocations: 9.926 MB / 465.7 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.4405, allocations: 8.031 kB / 465.7 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03053/0.4711, allocations: 5.63 MB / 471.3 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01236/0.4835, allocations: 6.06 MB / 477.4 MB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007945/0.4843, allocations: 0.7064 MB / 478.1 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003811/0.4881, allocations: 0.9295 MB / 479 MB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0333/0.5214, allocations: 14.99 MB / 494 MB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001958/0.5217, allocations: 23.8 kB / 494 MB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009962/0.5227, allocations: 395.9 kB / 494.4 MB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004754/0.5232, allocations: 0.5078 MB / 494.9 MB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02603/0.5492, allocations: 13.66 MB / 0.4966 GB, free: 5.504 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4176/0.9668, allocations: 48.14 MB / 0.5437 GB, free: 106.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01528/0.9821, allocations: 28.54 MB / 0.5715 GB, free: 81.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004107/0.9863, allocations: 3.069 MB / 0.5745 GB, free: 81.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000319/0.9866, allocations: 316.5 kB / 0.5748 GB, free: 81.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.9867, allocations: 76.55 kB / 0.5749 GB, free: 81.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.59e-06/0.9867, allocations: 2.297 kB / 0.5749 GB, free: 81.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02734/1.014, allocations: 15.6 MB / 0.5901 GB, free: 76.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/1.014, allocations: 91.7 kB / 0.5902 GB, free: 76.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004577/1.019, allocations: 3.567 MB / 0.5937 GB, free: 75.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004272/1.019, allocations: 92.92 kB / 0.5938 GB, free: 75.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001931/1.021, allocations: 4.04 MB / 0.5977 GB, free: 72.28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001485/1.023, allocations: 1.336 MB / 0.599 GB, free: 71.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002912/1.023, allocations: 118.7 kB / 0.5992 GB, free: 71.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002977/1.023, allocations: 0.5539 MB / 0.5997 GB, free: 70.74 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00357/1.027, allocations: 2.566 MB / 0.6022 GB, free: 69.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004129/1.031, allocations: 5.062 MB / 0.6071 GB, free: 64.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004621/1.036, allocations: 3.748 MB / 0.6108 GB, free: 62.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.314e-05/1.036, allocations: 23.72 kB / 0.6108 GB, free: 62.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01229/1.048, allocations: 8.578 MB / 0.6192 GB, free: 58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.723e-05/1.048, allocations: 41 kB / 0.6192 GB, free: 58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.505e-05/1.048, allocations: 84.5 kB / 0.6193 GB, free: 57.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001931/1.05, allocations: 0.849 MB / 0.6202 GB, free: 57.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004353/1.054, allocations: 1.373 MB / 0.6215 GB, free: 55.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008617/1.063, allocations: 7.101 MB / 0.6284 GB, free: 48.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004667/1.068, allocations: 328.8 kB / 0.6287 GB, free: 48.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007433/1.068, allocations: 307.8 kB / 0.629 GB, free: 47.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006077/1.075, allocations: 3.526 MB / 0.6325 GB, free: 44.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009133/1.075, allocations: 407 kB / 0.6329 GB, free: 43.92 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008885/1.084, allocations: 5.964 MB / 0.6387 GB, free: 37.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-05/1.084, allocations: 40 kB / 0.6387 GB, free: 37.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.084, allocations: 8 kB / 0.6387 GB, free: 37.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.18e-05/1.085, allocations: 19.92 kB / 0.6388 GB, free: 37.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02208/1.107, allocations: 15.23 MB / 0.6536 GB, free: 22.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/1.107, allocations: 4 kB / 0.6536 GB, free: 22.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002416/1.109, allocations: 0.6904 MB / 0.6543 GB, free: 21.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/1.111, allocations: 0.6976 MB / 0.655 GB, free: 21.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/1.111, allocations: 83.98 kB / 0.6551 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00684/1.118, allocations: 6.156 MB / 0.6611 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.118, allocations: 4 kB / 0.6611 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01093/1.129, allocations: 8.686 MB / 0.6696 GB, free: 5.871 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001921/1.131, allocations: 0.8863 MB / 0.6704 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004648/1.131, allocations: 75.95 kB / 0.6705 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/1.133, allocations: 183.8 kB / 0.6707 GB, free: 4.707 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003864/1.133, allocations: 270.7 kB / 0.6709 GB, free: 4.441 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001989/1.133, allocations: 108 kB / 0.671 GB, free: 4.336 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003016/1.136, allocations: 2.392 MB / 0.6734 GB, free: 1.957 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.136, allocations: 0 / 0.6734 GB, free: 1.957 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004783/1.141, allocations: 1.55 MB / 0.6749 GB, free: 420 kB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005301/1.142, allocations: 280.8 kB / 0.6752 GB, free: 136 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01012/1.152, allocations: 6.458 MB / 0.6815 GB, free: 9.668 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.152, allocations: 4.125 kB / 0.6815 GB, free: 9.664 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004409/1.156, allocations: 2.939 MB / 0.6843 GB, free: 6.715 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/1.161, allocations: 0.907 MB / 0.6852 GB, free: 5.828 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02828/1.189, allocations: 18.98 MB / 0.7038 GB, free: 2.746 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2008/1.39, allocations: 5.968 MB / 0.7096 GB, free: 144.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007127/1.397, allocations: 1.885 MB / 0.7114 GB, free: 144.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001636/1.399, allocations: 344.8 kB / 0.7118 GB, free: 144.8 MB / 478.1 MB Notification: Performance of SimCode: time 2.124e-06/1.399, allocations: 0 / 0.7118 GB, free: 144.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1006/1.499, allocations: 58.58 MB / 0.769 GB, free: 111.2 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