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.001328/0.001328, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 60.38 kB / 306.9 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1128, allocations: 50.54 MB / 357.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.219/0.3319, allocations: 28.1 MB / 385.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.3483, allocations: 8.418 MB / 394 MB, free: 1.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006796/0.3551, allocations: 204.4 kB / 394.2 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0173/0.3724, allocations: 7.726 MB / 401.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01117/0.3836, allocations: 2.528 MB / 404.4 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006104/0.3897, allocations: 1.782 MB / 406.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01377/0.4035, allocations: 9.94 MB / 416.2 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03142/0.435, allocations: 17.81 MB / 434 MB, free: 380 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009383/0.4444, allocations: 4.677 MB / 438.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009949/0.4544, allocations: 5.812 MB / 444.5 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003957/0.4584, allocations: 1.047 MB / 445.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006121/0.4645, allocations: 1.441 MB / 446.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004286/0.4688, allocations: 2.473 MB / 449.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0103/0.4792, allocations: 5.329 MB / 454.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01834/0.4975, allocations: 17.93 MB / 472.7 MB, free: 9.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.4976, allocations: 0 / 472.7 MB, free: 9.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4976, allocations: 4 kB / 472.7 MB, free: 9.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005859/0.4982, allocations: 0 / 472.7 MB, free: 9.555 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.03958/0.5378, allocations: 11.92 MB / 484.6 MB, free: 13.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.5379, allocations: 12.03 kB / 484.6 MB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02985/0.5677, allocations: 5.608 MB / 490.2 MB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01244/0.5802, allocations: 6.125 MB / 496.3 MB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007033/0.5809, allocations: 0.7064 MB / 497 MB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003834/0.5848, allocations: 0.9257 MB / 498 MB, free: 92 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0409/0.6257, allocations: 15.06 MB / 0.501 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005701/0.6263, allocations: 27.73 kB / 0.501 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003803/0.6301, allocations: 388 kB / 0.5014 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006314/0.6308, allocations: 0.5117 MB / 0.5019 GB, free: 24 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03266/0.6635, allocations: 13.74 MB / 0.5153 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3199/0.9834, allocations: 48.03 MB / 0.5622 GB, free: 110.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01811/1.002, allocations: 28.57 MB / 0.5901 GB, free: 82.56 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005311/1.007, allocations: 3.087 MB / 0.5931 GB, free: 80.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005783/1.008, allocations: 320.9 kB / 0.5935 GB, free: 80.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.45e-05/1.008, allocations: 81.23 kB / 0.5935 GB, free: 80.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 7.784e-06/1.008, allocations: 0 / 0.5935 GB, free: 80.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.03226/1.04, allocations: 14.72 MB / 0.6079 GB, free: 72.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.04, allocations: 93.77 kB / 0.608 GB, free: 72.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008652/1.049, allocations: 3.602 MB / 0.6115 GB, free: 70.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008451/1.05, allocations: 84.92 kB / 0.6116 GB, free: 70.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002249/1.052, allocations: 4.042 MB / 0.6155 GB, free: 66.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001496/1.053, allocations: 1.347 MB / 0.6169 GB, free: 65.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003119/1.057, allocations: 1.164 MB / 0.618 GB, free: 64.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.892e-05/1.057, allocations: 301.1 kB / 0.6183 GB, free: 63.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004346/1.061, allocations: 2.588 MB / 0.6208 GB, free: 61.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005572/1.067, allocations: 5.085 MB / 0.6258 GB, free: 54.94 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009255/1.076, allocations: 8.333 MB / 0.6339 GB, free: 45.42 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.783e-05/1.076, allocations: 27.94 kB / 0.6339 GB, free: 45.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01507/1.091, allocations: 8.628 MB / 0.6424 GB, free: 36.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/1.091, allocations: 40 kB / 0.6424 GB, free: 36.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000155/1.091, allocations: 80 kB / 0.6425 GB, free: 36.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/1.094, allocations: 0.8381 MB / 0.6433 GB, free: 35.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005267/1.099, allocations: 1.365 MB / 0.6446 GB, free: 34.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009228/1.108, allocations: 7.11 MB / 0.6516 GB, free: 27.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/1.113, allocations: 335.2 kB / 0.6519 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/1.115, allocations: 304 kB / 0.6522 GB, free: 26.54 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.007068/1.122, allocations: 3.509 MB / 0.6556 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/1.123, allocations: 407 kB / 0.656 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/1.134, allocations: 5.984 MB / 0.6618 GB, free: 16.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-05/1.134, allocations: 40 kB / 0.6619 GB, free: 16.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-05/1.134, allocations: 4 kB / 0.6619 GB, free: 16.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.865e-05/1.134, allocations: 23.92 kB / 0.6619 GB, free: 16.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02851/1.163, allocations: 15.25 MB / 0.6768 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/1.163, allocations: 4 kB / 0.6768 GB, free: 1.086 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002748/1.166, allocations: 0.6904 MB / 0.6775 GB, free: 404 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002122/1.168, allocations: 0.6945 MB / 0.6782 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004991/1.168, allocations: 91.97 kB / 0.6782 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009061/1.177, allocations: 6.142 MB / 0.6842 GB, free: 9.328 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.287e-06/1.177, allocations: 11.94 kB / 0.6842 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/1.193, allocations: 8.739 MB / 0.6928 GB, free: 468 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0027/1.196, allocations: 0.8757 MB / 0.6936 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001285/1.197, allocations: 79.84 kB / 0.6937 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002736/1.2, allocations: 191.8 kB / 0.6939 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008087/1.201, allocations: 266.7 kB / 0.6942 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004548/1.201, allocations: 115.9 kB / 0.6943 GB, free: 14.92 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005442/1.207, allocations: 2.416 MB / 0.6966 GB, free: 12.52 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.02e-07/1.207, allocations: 0 / 0.6966 GB, free: 12.52 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007637/1.215, allocations: 1.55 MB / 0.6981 GB, free: 10.97 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.001246/1.216, allocations: 268.8 kB / 0.6984 GB, free: 10.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01265/1.229, allocations: 6.494 MB / 0.7047 GB, free: 4.203 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.229, allocations: 0.875 kB / 0.7047 GB, free: 4.203 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00542/1.234, allocations: 2.947 MB / 0.7076 GB, free: 1.246 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006555/1.241, allocations: 0.9047 MB / 0.7085 GB, free: 368 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2518/1.492, allocations: 19.53 MB / 0.7276 GB, free: 146.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009853/1.502, allocations: 5.799 MB / 0.7332 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00202/1.504, allocations: 384.6 kB / 0.7336 GB, free: 144.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.473e-06/1.504, allocations: 0 / 0.7336 GB, free: 144.5 MB / 478.1 MB Notification: Performance of Templates: time 0.1716/1.676, allocations: 150.8 MB / 0.8809 GB, free: 6.426 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/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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches