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.001556/0.001556, allocations: 116.9 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.001861/0.001861, 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.343/1.343, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 59.59 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08111, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1579/0.239, allocations: 15.78 MB / 374.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008614/0.2477, allocations: 5.357 MB / 380 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.2492, allocations: 100.6 kB / 380.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002286/0.2515, allocations: 1.08 MB / 381.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0027/0.2542, allocations: 1.23 MB / 382.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.256, allocations: 0.9274 MB / 383.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003326/0.2593, allocations: 3.646 MB / 387 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003324/0.2626, allocations: 3.33 MB / 390.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002282/0.2649, allocations: 1.729 MB / 392.1 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002451/0.2674, allocations: 2.123 MB / 394.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005938/0.268, allocations: 480.4 kB / 394.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.2693, allocations: 0.6994 MB / 395.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009455/0.2703, allocations: 1.145 MB / 396.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.2724, allocations: 2.053 MB / 398.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005519/0.2779, allocations: 6.287 MB / 404.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2779, allocations: 3.938 kB / 404.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.278, allocations: 0 / 404.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000115/0.2781, allocations: 0 / 404.9 MB, free: 12.82 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.009053/0.2871, allocations: 4.275 MB / 409.1 MB, free: 9.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2872, allocations: 8.031 kB / 409.2 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002738/0.2899, allocations: 0.6275 MB / 409.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004006/0.2939, allocations: 2.288 MB / 412.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.2941, allocations: 237.4 kB / 412.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004315/0.2946, allocations: 312.3 kB / 412.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005963/0.3005, allocations: 4.056 MB / 416.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.404e-05/0.3006, allocations: 3.984 kB / 416.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.3009, allocations: 131.8 kB / 416.8 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.301, allocations: 142.2 kB / 416.9 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005235/0.3063, allocations: 3.394 MB / 420.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/0.3236, allocations: 13.33 MB / 433.7 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0042/0.3278, allocations: 4.289 MB / 437.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.3294, allocations: 1.038 MB / 439 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004549/0.334, allocations: 2.842 MB / 441.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.334, allocations: 47.5 kB / 441.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.855e-06/0.334, allocations: 0 / 441.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01135/0.3454, allocations: 5.985 MB / 447.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.3455, allocations: 64.72 kB / 447.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002722/0.3482, allocations: 1.905 MB / 449.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.45e-05/0.3483, allocations: 57.69 kB / 449.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009689/0.3493, allocations: 1.511 MB / 451.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.3496, allocations: 492.5 kB / 451.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004935/0.3501, allocations: 335.2 kB / 452.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.349e-05/0.3502, allocations: 305.1 kB / 452.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.3514, allocations: 0.7652 MB / 453.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.3529, allocations: 1.375 MB / 454.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002841/0.3557, allocations: 2.316 MB / 457 MB, free: 7.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.3558, allocations: 4 kB / 457 MB, free: 7.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003623/0.3594, allocations: 2.473 MB / 459.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.3594, allocations: 19.94 kB / 459.5 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.3595, allocations: 20 kB / 459.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003292/0.3598, allocations: 114.9 kB / 459.6 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/0.3615, allocations: 483.2 kB / 460.1 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009915/0.3625, allocations: 1.413 MB / 461.5 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/0.3638, allocations: 107.8 kB / 461.6 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.3639, allocations: 92.08 kB / 461.7 MB, free: 2.621 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.001395/0.3653, allocations: 0.9928 MB / 462.7 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.3656, allocations: 205.4 kB / 462.9 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/0.3687, allocations: 1.966 MB / 464.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.3687, allocations: 12 kB / 464.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3688, allocations: 4 kB / 464.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.3688, allocations: 7.969 kB / 464.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007188/0.376, allocations: 4.997 MB / 469.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.376, allocations: 4 kB / 469.9 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/0.3773, allocations: 311.5 kB / 470.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002868/0.3776, allocations: 98.77 kB / 470.3 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.212e-05/0.3777, allocations: 28 kB / 470.3 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008504/0.3786, allocations: 1.375 MB / 471.7 MB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.3786, allocations: 7.938 kB / 471.7 MB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004168/0.3828, allocations: 3.086 MB / 474.7 MB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008195/0.3836, allocations: 458.5 kB / 475.2 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/0.3839, allocations: 28 kB / 475.2 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009175/0.3848, allocations: 75.91 kB / 475.3 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.385, allocations: 89.12 kB / 475.4 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.307e-05/0.3851, allocations: 36 kB / 475.4 MB, free: 4.535 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001682/0.3867, allocations: 1.297 MB / 476.7 MB, free: 3.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3867, allocations: 0 / 476.7 MB, free: 3.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001512/0.3883, allocations: 0.543 MB / 477.3 MB, free: 2.672 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.0003439/0.3886, allocations: 165.2 kB / 477.4 MB, free: 2.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.3918, allocations: 2.22 MB / 479.6 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3918, allocations: 0 / 479.6 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.3933, allocations: 1.177 MB / 480.8 MB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/0.3953, allocations: 0.5328 MB / 481.4 MB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008045/0.4034, allocations: 5.594 MB / 486.9 MB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/0.4053, allocations: 2.264 MB / 489.2 MB, free: 6.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001398/0.4067, allocations: 0.5133 MB / 489.7 MB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004298/0.4071, allocations: 151.4 kB / 489.9 MB, free: 5.863 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4071, allocations: 3.938 kB / 489.9 MB, free: 5.859 MB / 398.1 MB Notification: Performance of Templates: time 0.04303/0.4502, allocations: 26.32 MB / 0.5041 GB, free: 11.82 MB / 430.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 -s gbode -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