Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 247.5 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001869, allocations: 59.53 kB / 307.7 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1144, allocations: 50.54 MB / 358.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.205/0.3195, allocations: 15.79 MB / 374 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3305, allocations: 5.348 MB / 379.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003502/0.334, allocations: 100.6 kB / 379.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003618/0.3376, allocations: 1.078 MB / 380.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004504/0.3422, allocations: 1.235 MB / 381.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002411/0.3446, allocations: 0.9247 MB / 382.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004987/0.3496, allocations: 3.617 MB / 386.3 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004395/0.354, allocations: 3.328 MB / 389.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003395/0.3575, allocations: 1.736 MB / 391.4 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003383/0.3609, allocations: 2.109 MB / 393.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009759/0.3619, allocations: 479.6 kB / 393.9 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.364, allocations: 0.7151 MB / 394.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008957/0.3649, allocations: 1.148 MB / 395.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002077/0.367, allocations: 2.047 MB / 397.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00791/0.3749, allocations: 6.244 MB / 404.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.375, allocations: 0 / 404.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.375, allocations: 0 / 404.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001499/0.3751, allocations: 2.781 kB / 404.1 MB, free: 12.46 MB / 318.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.01162/0.3868, allocations: 4.278 MB / 408.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3868, allocations: 12.03 kB / 408.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003066/0.3899, allocations: 0.6095 MB / 409 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004852/0.3948, allocations: 2.226 MB / 411.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002492/0.3951, allocations: 242 kB / 411.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005928/0.3957, allocations: 319.8 kB / 411.8 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007902/0.4036, allocations: 4.053 MB / 415.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.155e-05/0.4037, allocations: 4 kB / 415.8 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003076/0.404, allocations: 124 kB / 415.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/0.4042, allocations: 150.2 kB / 416.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006255/0.4104, allocations: 3.382 MB / 419.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02442/0.4349, allocations: 13.5 MB / 433 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005784/0.4407, allocations: 4.289 MB / 437.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001918/0.4427, allocations: 1.038 MB / 438.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00529/0.448, allocations: 2.861 MB / 441.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.448, allocations: 47.5 kB / 441.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 3.366e-06/0.448, allocations: 0 / 441.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01269/0.4607, allocations: 5.998 MB / 447.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.4608, allocations: 64.72 kB / 447.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003077/0.4639, allocations: 1.909 MB / 449.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.464, allocations: 45.7 kB / 449.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.4656, allocations: 1.512 MB / 450.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005163/0.4661, allocations: 491.4 kB / 451.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005822/0.4667, allocations: 347.1 kB / 451.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002449/0.4669, allocations: 301.1 kB / 451.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.4682, allocations: 0.7691 MB / 452.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/0.4703, allocations: 1.375 MB / 454 MB, free: 9.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003407/0.4737, allocations: 2.316 MB / 456.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.4737, allocations: 7.938 kB / 456.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004393/0.4781, allocations: 2.481 MB / 458.8 MB, free: 4.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.4782, allocations: 12 kB / 458.8 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.918e-05/0.4782, allocations: 20 kB / 458.8 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003916/0.4786, allocations: 126.8 kB / 458.9 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/0.4805, allocations: 483.2 kB / 459.4 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.4818, allocations: 1.406 MB / 460.8 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.4833, allocations: 116 kB / 460.9 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.4834, allocations: 84 kB / 461 MB, free: 2.324 MB / 366.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.002023/0.4855, allocations: 0.9889 MB / 462 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004731/0.4859, allocations: 201.5 kB / 462.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003594/0.4895, allocations: 1.975 MB / 464.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.4896, allocations: 12 kB / 464.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4896, allocations: 0 / 464.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.4896, allocations: 7.922 kB / 464.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008075/0.4977, allocations: 5.013 MB / 469.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4977, allocations: 0 / 469.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.4991, allocations: 307.6 kB / 469.5 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003018/0.4994, allocations: 102.7 kB / 469.6 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.708e-05/0.4995, allocations: 27.98 kB / 469.6 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.5007, allocations: 1.375 MB / 471 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.5007, allocations: 0 / 471 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004878/0.5056, allocations: 3.093 MB / 474.1 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.5067, allocations: 458.5 kB / 474.6 MB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/0.507, allocations: 28 kB / 474.6 MB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009512/0.508, allocations: 79.84 kB / 474.7 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.5082, allocations: 93.19 kB / 474.8 MB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.329e-05/0.5083, allocations: 39.98 kB / 474.8 MB, free: 4.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002154/0.5105, allocations: 1.297 MB / 476.1 MB, free: 2.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5105, allocations: 0 / 476.1 MB, free: 2.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002037/0.5125, allocations: 0.5391 MB / 476.6 MB, free: 2.371 MB / 382.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.000414/0.5129, allocations: 169.9 kB / 476.8 MB, free: 2.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005937/0.5189, allocations: 2.84 MB / 479.6 MB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.5189, allocations: 0 / 479.6 MB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.5207, allocations: 1.179 MB / 480.8 MB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/0.5232, allocations: 0.5278 MB / 481.3 MB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.5337, allocations: 5.688 MB / 487 MB, free: 7.805 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002319/0.5361, allocations: 2.224 MB / 489.3 MB, free: 5.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009232/0.537, allocations: 175.4 kB / 489.4 MB, free: 5.379 MB / 398.1 MB Notification: Performance of SimCode: time 1.222e-06/0.537, allocations: 0 / 489.4 MB, free: 5.379 MB / 398.1 MB Notification: Performance of Templates: time 0.2881/0.8251, allocations: 86.36 MB / 0.5623 GB, free: 132.3 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches