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.001495/0.001495, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001754/0.001754, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.00117, allocations: 64.7 kB / 308.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.09158, allocations: 50.54 MB / 358.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1741/0.2657, allocations: 28.61 MB / 387.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01604/0.2818, allocations: 8.491 MB / 396 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005479/0.2873, allocations: 212.2 kB / 396.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01735/0.3047, allocations: 8.164 MB / 404.4 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008837/0.3136, allocations: 2.787 MB / 407.2 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004893/0.3185, allocations: 1.88 MB / 409.1 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01153/0.33, allocations: 10.03 MB / 419.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02673/0.3568, allocations: 21.35 MB / 440.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006942/0.3638, allocations: 5.357 MB / 445.8 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008077/0.3719, allocations: 6.078 MB / 451.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002376/0.3743, allocations: 1.539 MB / 453.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003593/0.3779, allocations: 1.914 MB / 455.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002424/0.3803, allocations: 2.989 MB / 458.3 MB, free: 8.215 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006533/0.3869, allocations: 5.856 MB / 464.2 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01802/0.4049, allocations: 20.63 MB / 484.8 MB, free: 13.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.4049, allocations: 0 / 484.8 MB, free: 13.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4049, allocations: 4 kB / 484.8 MB, free: 13.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000345/0.4053, allocations: 0 / 484.8 MB, free: 13.64 MB / 398.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.02689/0.4322, allocations: 11.87 MB / 496.7 MB, free: 1.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.4322, allocations: 11.97 kB / 496.7 MB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02887/0.4611, allocations: 5.631 MB / 0.4906 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01383/0.475, allocations: 6.301 MB / 0.4967 GB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006891/0.4757, allocations: 0.7024 MB / 0.4974 GB, free: 4.949 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002924/0.4786, allocations: 0.9218 MB / 0.4983 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03055/0.5092, allocations: 15.07 MB / 0.513 GB, free: 4.875 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003001/0.5095, allocations: 15.81 kB / 0.513 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001794/0.5113, allocations: 392 kB / 0.5134 GB, free: 4.477 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005002/0.5118, allocations: 0.5194 MB / 0.5139 GB, free: 3.953 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02439/0.5362, allocations: 13.74 MB / 0.5273 GB, free: 6.188 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3491/0.8853, allocations: 47.51 MB / 0.5737 GB, free: 104.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01614/0.9015, allocations: 28.59 MB / 0.6017 GB, free: 75.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004442/0.906, allocations: 3.077 MB / 0.6047 GB, free: 73.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005127/0.9066, allocations: 327.8 kB / 0.605 GB, free: 73.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.731e-05/0.9066, allocations: 71.95 kB / 0.605 GB, free: 73.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 7.053e-06/0.9067, allocations: 0 / 0.605 GB, free: 73.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.0279/0.9346, allocations: 14.77 MB / 0.6195 GB, free: 61.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.9346, allocations: 90.48 kB / 0.6195 GB, free: 61.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004913/0.9396, allocations: 3.61 MB / 0.6231 GB, free: 58.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004269/0.94, allocations: 89.7 kB / 0.6232 GB, free: 57.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001561/0.9416, allocations: 4.042 MB / 0.6271 GB, free: 53.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000947/0.9425, allocations: 1.339 MB / 0.6284 GB, free: 52.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001678/0.9442, allocations: 1.164 MB / 0.6296 GB, free: 51.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.9443, allocations: 305.1 kB / 0.6298 GB, free: 51.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003316/0.9476, allocations: 2.588 MB / 0.6324 GB, free: 48.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004434/0.952, allocations: 5.089 MB / 0.6373 GB, free: 42.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00809/0.9601, allocations: 8.344 MB / 0.6455 GB, free: 32.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.305e-05/0.9602, allocations: 24 kB / 0.6455 GB, free: 32.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0126/0.9728, allocations: 8.639 MB / 0.6539 GB, free: 24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.535e-05/0.9729, allocations: 40 kB / 0.654 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/0.9731, allocations: 84 kB / 0.6541 GB, free: 23.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002196/0.9753, allocations: 0.8464 MB / 0.6549 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004337/0.9796, allocations: 1.369 MB / 0.6562 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009304/0.9889, allocations: 7.683 MB / 0.6637 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/0.9931, allocations: 327.3 kB / 0.664 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008502/0.9939, allocations: 308 kB / 0.6643 GB, free: 13.2 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.005228/0.9992, allocations: 3.513 MB / 0.6678 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001005/1, allocations: 407 kB / 0.6682 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009122/1.009, allocations: 5.98 MB / 0.674 GB, free: 3.258 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/1.009, allocations: 40 kB / 0.674 GB, free: 3.219 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/1.009, allocations: 8 kB / 0.674 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/1.009, allocations: 19.92 kB / 0.6741 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/1.035, allocations: 14.96 MB / 0.6887 GB, free: 4.172 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/1.035, allocations: 4 kB / 0.6887 GB, free: 4.168 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002688/1.038, allocations: 0.6865 MB / 0.6893 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00197/1.04, allocations: 0.7175 MB / 0.69 GB, free: 2.762 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003098/1.04, allocations: 83.92 kB / 0.6901 GB, free: 2.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008933/1.049, allocations: 6.714 MB / 0.6967 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/1.049, allocations: 7.938 kB / 0.6967 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/1.062, allocations: 8.757 MB / 0.7052 GB, free: 2.941 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002126/1.064, allocations: 0.8785 MB / 0.7061 GB, free: 2.039 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006729/1.065, allocations: 76 kB / 0.7062 GB, free: 1.965 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002004/1.067, allocations: 187.9 kB / 0.7064 GB, free: 1.781 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004886/1.067, allocations: 266.6 kB / 0.7066 GB, free: 1.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002468/1.068, allocations: 116 kB / 0.7067 GB, free: 1.406 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.1664/1.234, allocations: 2.41 MB / 0.7091 GB, free: 150.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.052e-06/1.234, allocations: 0 / 0.7091 GB, free: 150.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005347/1.239, allocations: 1.556 MB / 0.7106 GB, free: 150.9 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.0004653/1.24, allocations: 256 kB / 0.7108 GB, free: 150.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008781/1.249, allocations: 6.528 MB / 0.7172 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.249, allocations: 6.344 kB / 0.7172 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003944/1.253, allocations: 2.949 MB / 0.7201 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003944/1.257, allocations: 0.9635 MB / 0.721 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02242/1.279, allocations: 15.71 MB / 0.7364 GB, free: 141.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004437/1.284, allocations: 5.971 MB / 0.7422 GB, free: 139.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003933/1.287, allocations: 1.892 MB / 0.7441 GB, free: 139 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008666/1.288, allocations: 348 kB / 0.7444 GB, free: 138.9 MB / 478.1 MB Notification: Performance of SimCode: time 6.31e-07/1.288, allocations: 0 / 0.7444 GB, free: 138.9 MB / 478.1 MB Notification: Performance of Templates: time 0.07957/1.368, allocations: 57.77 MB / 0.8008 GB, free: 84.57 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 -s gbode -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