Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.0009787/0.0009788, allocations: 191 kB / 18 MB, free: 5.098 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.34/1.34, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009302/0.0009302, allocations: 47.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3343, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01624/0.3506, allocations: 15.18 MB / 415.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009928/0.3605, allocations: 5.088 MB / 421 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002286/0.3628, allocations: 95.62 kB / 421.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002433/0.3653, allocations: 1.071 MB / 422.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003324/0.3687, allocations: 1.266 MB / 423.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.3706, allocations: 0.886 MB / 424.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004275/0.3749, allocations: 3.616 MB / 427.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003817/0.3788, allocations: 3.31 MB / 431.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002692/0.3815, allocations: 1.717 MB / 433 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002939/0.3844, allocations: 2.055 MB / 435 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006559/0.3851, allocations: 484 kB / 435.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.3866, allocations: 0.6834 MB / 436.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.3876, allocations: 1.138 MB / 437.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002284/0.3899, allocations: 2.038 MB / 439.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007604/0.3975, allocations: 6.287 MB / 445.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3975, allocations: 0 / 445.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3975, allocations: 0 / 445.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001191/0.3977, allocations: 0 / 445.6 MB, free: 11.72 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009997/0.4077, allocations: 4.335 MB / 450 MB, free: 7.309 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.4077, allocations: 16.03 kB / 450 MB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002658/0.4104, allocations: 0.6387 MB / 450.6 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003837/0.4142, allocations: 2.282 MB / 452.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001804/0.4144, allocations: 234.7 kB / 453.1 MB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004271/0.4149, allocations: 320.1 kB / 453.5 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006728/0.4216, allocations: 4.054 MB / 457.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.804e-05/0.4217, allocations: 3.984 kB / 457.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002788/0.422, allocations: 128 kB / 457.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001562/0.4222, allocations: 150.2 kB / 457.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005593/0.4278, allocations: 3.386 MB / 461.2 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01763/0.4454, allocations: 13.19 MB / 474.4 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003917/0.4494, allocations: 3.972 MB / 478.3 MB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.4508, allocations: 0.984 MB / 479.3 MB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003889/0.4547, allocations: 2.658 MB / 482 MB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.4548, allocations: 51.5 kB / 482 MB, free: 6.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.334e-06/0.4548, allocations: 0 / 482 MB, free: 6.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01106/0.4659, allocations: 6.036 MB / 488.1 MB, free: 15.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.4659, allocations: 68.72 kB / 488.1 MB, free: 15.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.4685, allocations: 1.901 MB / 490 MB, free: 13.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.604e-05/0.4686, allocations: 45.7 kB / 490.1 MB, free: 13.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.4697, allocations: 1.54 MB / 491.6 MB, free: 12.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.4701, allocations: 0.5035 MB / 492.1 MB, free: 11.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004895/0.4706, allocations: 335.4 kB / 492.4 MB, free: 11.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4707, allocations: 301.1 kB / 492.7 MB, free: 11.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.4718, allocations: 0.7691 MB / 493.5 MB, free: 10.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.4734, allocations: 1.379 MB / 494.9 MB, free: 8.781 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/0.4763, allocations: 2.32 MB / 497.2 MB, free: 6.195 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.4763, allocations: 4 kB / 497.2 MB, free: 6.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003714/0.48, allocations: 2.483 MB / 499.7 MB, free: 3.691 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.4801, allocations: 12 kB / 499.7 MB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.4801, allocations: 20 kB / 499.7 MB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003451/0.4805, allocations: 118.5 kB / 499.8 MB, free: 3.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.4821, allocations: 491.2 kB / 0.4886 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.4832, allocations: 1.41 MB / 0.49 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.4845, allocations: 107.9 kB / 0.4901 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.4847, allocations: 83.98 kB / 0.4902 GB, free: 1.316 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00184/0.4865, allocations: 0.9852 MB / 0.4911 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000289/0.4868, allocations: 210.6 kB / 0.4913 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.49, allocations: 1.969 MB / 0.4932 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.49, allocations: 12 kB / 0.4932 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.49, allocations: 4 kB / 0.4933 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.49, allocations: 7.969 kB / 0.4933 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007123/0.4971, allocations: 4.987 MB / 0.4981 GB, free: 9.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.4972, allocations: 4.062 kB / 0.4981 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.4984, allocations: 311.6 kB / 0.4984 GB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002707/0.4987, allocations: 90.47 kB / 0.4985 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.939e-05/0.4988, allocations: 39.98 kB / 0.4986 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009013/0.4997, allocations: 1.371 MB / 0.4999 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4997, allocations: 4 kB / 0.4999 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004073/0.5038, allocations: 3.095 MB / 0.5029 GB, free: 3.891 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006781/0.5045, allocations: 467.5 kB / 0.5034 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/0.5047, allocations: 28 kB / 0.5034 GB, free: 3.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009152/0.5056, allocations: 83.95 kB / 0.5035 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.5058, allocations: 89.08 kB / 0.5036 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-05/0.5059, allocations: 47.92 kB / 0.5036 GB, free: 3.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002079/0.508, allocations: 1.289 MB / 0.5049 GB, free: 1.859 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.508, allocations: 0 / 0.5049 GB, free: 1.859 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002099/0.5101, allocations: 0.5312 MB / 0.5054 GB, free: 1.328 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003823/0.5105, allocations: 166.9 kB / 0.5055 GB, free: 1.152 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003244/0.5138, allocations: 2.213 MB / 0.5077 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.5138, allocations: 4 kB / 0.5077 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.5153, allocations: 1.174 MB / 0.5089 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.5173, allocations: 0.5251 MB / 0.5094 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008685/0.526, allocations: 5.668 MB / 0.5149 GB, free: 7.414 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001842/0.5279, allocations: 2.263 MB / 0.5171 GB, free: 5.113 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001406/0.5293, allocations: 0.5053 MB / 0.5176 GB, free: 4.605 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004265/0.5297, allocations: 147.4 kB / 0.5177 GB, free: 4.461 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5297, allocations: 0 / 0.5177 GB, free: 4.461 MB / 446.1 MB Notification: Performance of Templates: time 0.3127/0.8424, allocations: 26.6 MB / 0.5437 GB, free: 121.8 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches