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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 98.16 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009861/0.0009862, allocations: 39.94 kB / 350.1 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2413, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01252/0.2539, allocations: 14.98 MB / 414.5 MB, free: 18.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009284/0.2632, allocations: 5.033 MB / 419.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003522/0.2668, allocations: 91.62 kB / 419.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003476/0.2703, allocations: 0.9404 MB / 420.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004259/0.2746, allocations: 1.139 MB / 421.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002245/0.2769, allocations: 0.8149 MB / 422.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004463/0.2814, allocations: 3.793 MB / 426.3 MB, free: 6.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003183/0.2846, allocations: 2.783 MB / 429.1 MB, free: 3.645 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/0.2866, allocations: 1.452 MB / 430.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002465/0.2891, allocations: 1.922 MB / 432.4 MB, free: 264 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006062/0.2897, allocations: 288 kB / 432.7 MB, free: 15.97 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.2913, allocations: 0.5075 MB / 433.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008928/0.2922, allocations: 0.9539 MB / 434.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00219/0.2944, allocations: 1.843 MB / 436 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005392/0.2998, allocations: 6.063 MB / 442.1 MB, free: 6.578 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2998, allocations: 4 kB / 442.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2998, allocations: 0 / 442.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002394/0.3001, allocations: 0 / 442.1 MB, free: 6.574 MB / 314.7 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.01174/0.3118, allocations: 4.246 MB / 446.3 MB, free: 2.254 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.3119, allocations: 8.031 kB / 446.3 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003263/0.3152, allocations: 0.6173 MB / 447 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004363/0.3195, allocations: 2.191 MB / 449.1 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.3198, allocations: 242.8 kB / 449.4 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005204/0.3203, allocations: 311.9 kB / 449.7 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006784/0.3271, allocations: 4.047 MB / 453.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.046e-05/0.3272, allocations: 7.891 kB / 453.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002824/0.3275, allocations: 132 kB / 453.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/0.3276, allocations: 146.2 kB / 454 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005757/0.3334, allocations: 3.39 MB / 457.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02305/0.3565, allocations: 13.3 MB / 470.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004343/0.3608, allocations: 3.962 MB / 474.7 MB, free: 4.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/0.3627, allocations: 1.004 MB / 475.7 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005401/0.3681, allocations: 2.661 MB / 478.3 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.3682, allocations: 39.56 kB / 478.4 MB, free: 1.035 MB / 346.7 MB Notification: Performance of pre-optimization done (n=108): time 3.957e-06/0.3682, allocations: 0 / 478.4 MB, free: 1.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=142): time 0.01258/0.3808, allocations: 5.972 MB / 484.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.3809, allocations: 64.72 kB / 484.4 MB, free: 10.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/0.3846, allocations: 1.9 MB / 486.3 MB, free: 8.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002278/0.3849, allocations: 49.7 kB / 486.3 MB, free: 8.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.386, allocations: 1.501 MB / 487.8 MB, free: 7.367 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/0.3865, allocations: 492.9 kB / 488.3 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006694/0.3872, allocations: 335.2 kB / 488.7 MB, free: 6.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.819e-05/0.3873, allocations: 305.1 kB / 489 MB, free: 6.246 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.3887, allocations: 0.7652 MB / 489.7 MB, free: 5.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.3904, allocations: 1.379 MB / 491.1 MB, free: 3.832 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003839/0.3942, allocations: 2.312 MB / 493.4 MB, free: 1.254 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.027e-05/0.3943, allocations: 7.984 kB / 493.4 MB, free: 1.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00483/0.3991, allocations: 2.462 MB / 495.9 MB, free: 14.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.3992, allocations: 12 kB / 495.9 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.673e-05/0.3993, allocations: 28 kB / 495.9 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004195/0.3997, allocations: 122.5 kB / 496 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.4015, allocations: 475.2 kB / 496.5 MB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.4029, allocations: 1.319 MB / 497.8 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/0.405, allocations: 119.9 kB / 497.9 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002866/0.4053, allocations: 83.98 kB / 498 MB, free: 12.48 MB / 378.7 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.002258/0.4076, allocations: 0.985 MB / 499 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007123/0.4083, allocations: 201.5 kB / 499.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003986/0.4123, allocations: 1.962 MB / 0.4894 GB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.4124, allocations: 15.94 kB / 0.4894 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.4124, allocations: 0 / 0.4894 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/0.4124, allocations: 7.984 kB / 0.4894 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.4227, allocations: 4.993 MB / 0.4943 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.4228, allocations: 3.938 kB / 0.4943 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/0.4241, allocations: 303.6 kB / 0.4946 GB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003543/0.4245, allocations: 98.55 kB / 0.4947 GB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001381/0.4247, allocations: 35.98 kB / 0.4947 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009184/0.4256, allocations: 1.276 MB / 0.496 GB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.4256, allocations: 12.06 kB / 0.496 GB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2484/0.674, allocations: 10.53 MB / 0.5063 GB, free: 90.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007945/0.6749, allocations: 459.2 kB / 0.5067 GB, free: 90.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.6751, allocations: 23.94 kB / 0.5067 GB, free: 90.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009291/0.676, allocations: 82.22 kB / 0.5068 GB, free: 90.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.6762, allocations: 92.45 kB / 0.5069 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.87e-05/0.6763, allocations: 43.31 kB / 0.5069 GB, free: 90.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002462/0.6788, allocations: 1.287 MB / 0.5082 GB, free: 89.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6788, allocations: 0 / 0.5082 GB, free: 89.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002302/0.6811, allocations: 0.6873 MB / 0.5089 GB, free: 89.55 MB / 378.7 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.0003368/0.6814, allocations: 165 kB / 0.509 GB, free: 89.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.6842, allocations: 2.218 MB / 0.5112 GB, free: 88.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.6842, allocations: 2.625 kB / 0.5112 GB, free: 88.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.6855, allocations: 1.176 MB / 0.5124 GB, free: 87.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/0.6876, allocations: 498.7 kB / 0.5128 GB, free: 87.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00941/0.6971, allocations: 8.087 MB / 0.5207 GB, free: 81.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001514/0.6986, allocations: 2.296 MB / 0.523 GB, free: 79.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00182/0.7005, allocations: 0.5248 MB / 0.5235 GB, free: 79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004242/0.7009, allocations: 155.4 kB / 0.5236 GB, free: 78.84 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.7009, allocations: 0 / 0.5236 GB, free: 78.84 MB / 378.7 MB Notification: Performance of Templates: time 0.04491/0.7458, allocations: 27.39 MB / 0.5504 GB, free: 51.76 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../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