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.001292/0.001292, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001207/0.001207, allocations: 209.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 65.48 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1083, allocations: 50.53 MB / 357.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2259/0.3343, allocations: 15.58 MB / 373.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.3454, allocations: 5.265 MB / 378.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003972/0.3494, allocations: 96.31 kB / 378.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004546/0.354, allocations: 0.9563 MB / 379.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007067/0.3612, allocations: 1.1 MB / 380.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003384/0.3646, allocations: 0.8438 MB / 381.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006727/0.3713, allocations: 3.727 MB / 385.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004806/0.3762, allocations: 3.322 MB / 388.5 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003747/0.3799, allocations: 1.676 MB / 390.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005047/0.385, allocations: 2.057 MB / 392.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001912/0.387, allocations: 477.2 kB / 392.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003296/0.3903, allocations: 0.7135 MB / 393.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00143/0.3917, allocations: 1.14 MB / 394.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004589/0.3963, allocations: 2.049 MB / 396.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006994/0.4033, allocations: 5.297 MB / 401.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.4034, allocations: 0 / 401.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.4034, allocations: 0 / 401.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001953/0.4036, allocations: 3.938 kB / 401.9 MB, free: 13.68 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.01371/0.4173, allocations: 4.267 MB / 406.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.4174, allocations: 12.03 kB / 406.2 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003383/0.4208, allocations: 0.624 MB / 406.9 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005165/0.426, allocations: 2.205 MB / 409.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003024/0.4263, allocations: 237.2 kB / 409.3 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001198/0.4275, allocations: 318.9 kB / 409.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.4389, allocations: 4.05 MB / 413.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001418/0.4391, allocations: 7.906 kB / 413.7 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007556/0.4398, allocations: 131.2 kB / 413.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/0.44, allocations: 154.2 kB / 413.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008223/0.4483, allocations: 3.384 MB / 417.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02436/0.4726, allocations: 13.49 MB / 430.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004577/0.4773, allocations: 4.273 MB / 435.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.479, allocations: 1.038 MB / 436.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005675/0.4847, allocations: 2.86 MB / 439 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/0.4848, allocations: 55.48 kB / 439 MB, free: 8.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 4.268e-06/0.4848, allocations: 0 / 439 MB, free: 8.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01374/0.4986, allocations: 5.985 MB / 445 MB, free: 2.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.4987, allocations: 68.72 kB / 445.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004213/0.5029, allocations: 1.905 MB / 447 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.5031, allocations: 45.7 kB / 447 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.5045, allocations: 1.517 MB / 448.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005538/0.505, allocations: 493.5 kB / 449 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007147/0.5058, allocations: 331.2 kB / 449.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.5059, allocations: 305.1 kB / 449.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.5072, allocations: 0.773 MB / 450.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/0.5089, allocations: 1.383 MB / 451.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003227/0.5122, allocations: 2.312 MB / 454.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.917e-05/0.5122, allocations: 7.938 kB / 454.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004469/0.5167, allocations: 2.474 MB / 456.6 MB, free: 6.395 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.5168, allocations: 23.88 kB / 456.6 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-05/0.5168, allocations: 16 kB / 456.6 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003986/0.5172, allocations: 126.5 kB / 456.8 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.5189, allocations: 483.3 kB / 457.2 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/0.52, allocations: 1.406 MB / 458.6 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.5218, allocations: 111.7 kB / 458.8 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/0.522, allocations: 92.08 kB / 458.8 MB, free: 4 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.001945/0.524, allocations: 0.9812 MB / 459.8 MB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006075/0.5246, allocations: 201.5 kB / 460 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.5281, allocations: 1.969 MB / 462 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.5281, allocations: 12 kB / 462 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.5282, allocations: 8 kB / 462 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.5282, allocations: 3.984 kB / 462 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009242/0.5374, allocations: 4.993 MB / 467 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.5375, allocations: 4 kB / 467 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/0.5389, allocations: 311.8 kB / 467.3 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003054/0.5392, allocations: 90.53 kB / 467.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.5393, allocations: 39.98 kB / 467.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/0.5403, allocations: 1.382 MB / 468.8 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.5403, allocations: 7.938 kB / 468.8 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00485/0.5452, allocations: 3.077 MB / 471.9 MB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/0.5465, allocations: 454.4 kB / 472.4 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006303/0.5471, allocations: 32.06 kB / 472.4 MB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/0.5486, allocations: 79.89 kB / 472.5 MB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.5488, allocations: 93.02 kB / 472.6 MB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.5489, allocations: 39.98 kB / 472.6 MB, free: 5.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003198/0.5521, allocations: 1.294 MB / 473.9 MB, free: 4.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5521, allocations: 0 / 473.9 MB, free: 4.613 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002812/0.5549, allocations: 0.5507 MB / 474.4 MB, free: 4.062 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.000481/0.5554, allocations: 174.8 kB / 474.6 MB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005945/0.5614, allocations: 2.83 MB / 477.4 MB, free: 1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.5614, allocations: 0.5 kB / 477.4 MB, free: 1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.5631, allocations: 1.177 MB / 478.6 MB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003607/0.5668, allocations: 0.5324 MB / 479.1 MB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.5804, allocations: 7.064 MB / 486.2 MB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002942/0.5834, allocations: 2.221 MB / 488.4 MB, free: 5.875 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009215/0.5843, allocations: 171.4 kB / 488.6 MB, free: 5.707 MB / 398.1 MB Notification: Performance of SimCode: time 1.483e-06/0.5843, allocations: 0 / 488.6 MB, free: 5.707 MB / 398.1 MB Notification: Performance of Templates: time 0.3674/0.9517, allocations: 86.34 MB / 0.5615 GB, free: 133.1 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.0.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