Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 104.8 kB / 17.06 MB, free: 5.785 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.001168/0.001169, allocations: 195 kB / 18 MB, free: 4.945 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.309/1.309, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 47.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2548, allocations: 49.44 MB / 400.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01815/0.273, allocations: 10.19 MB / 410.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008582/0.2816, allocations: 3.221 MB / 414.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.2833, allocations: 59.75 kB / 414.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002934/0.2863, allocations: 0.6947 MB / 414.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003887/0.2902, allocations: 0.8348 MB / 415.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.2917, allocations: 407.4 kB / 416.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.2948, allocations: 2.961 MB / 419.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00283/0.2976, allocations: 2.48 MB / 421.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001613/0.2993, allocations: 1.343 MB / 422.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002417/0.3017, allocations: 1.701 MB / 424.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006812/0.3024, allocations: 352 kB / 425 MB, free: 484 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.3034, allocations: 455.9 kB / 425.4 MB, free: 28 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.3045, allocations: 1.013 MB / 426.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002006/0.3065, allocations: 1.61 MB / 428 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00449/0.311, allocations: 4.686 MB / 432.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3111, allocations: 0 / 432.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3111, allocations: 0 / 432.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.3112, allocations: 4 kB / 432.7 MB, free: 8.688 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006027/0.3172, allocations: 3.336 MB / 436.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.3173, allocations: 8.031 kB / 436.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007132/0.318, allocations: 346.9 kB / 436.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002516/0.3205, allocations: 1.765 MB / 438.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3206, allocations: 180.7 kB / 438.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003046/0.321, allocations: 228 kB / 438.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00464/0.3256, allocations: 3.141 MB / 441.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.748e-05/0.3257, allocations: 15.94 kB / 441.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.3259, allocations: 96 kB / 441.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.562e-05/0.326, allocations: 104.6 kB / 441.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00427/0.3303, allocations: 2.692 MB / 444.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01276/0.343, allocations: 9.668 MB / 454.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/0.3456, allocations: 2.162 MB / 456.4 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001825/0.3474, allocations: 1.113 MB / 457.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002857/0.3477, allocations: 207.2 kB / 457.8 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.3478, allocations: 47.5 kB / 457.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.685e-06/0.3478, allocations: 0 / 457.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01356/0.3614, allocations: 6.882 MB / 464.7 MB, free: 7.824 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.3614, allocations: 68.66 kB / 464.7 MB, free: 7.746 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002408/0.3638, allocations: 1.747 MB / 466.5 MB, free: 5.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.654e-05/0.3639, allocations: 45.7 kB / 466.5 MB, free: 5.945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007927/0.3647, allocations: 1.186 MB / 467.7 MB, free: 4.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003371/0.3651, allocations: 476 kB / 468.2 MB, free: 4.277 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004365/0.3655, allocations: 287.5 kB / 468.5 MB, free: 3.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.5e-05/0.3656, allocations: 305.1 kB / 468.8 MB, free: 3.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.3669, allocations: 0.7964 MB / 469.6 MB, free: 2.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.3684, allocations: 1.201 MB / 470.8 MB, free: 1.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/0.3712, allocations: 2.098 MB / 472.9 MB, free: 15.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.3713, allocations: 4 kB / 472.9 MB, free: 15.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004325/0.3756, allocations: 2.683 MB / 475.6 MB, free: 12.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.3756, allocations: 14.5 kB / 475.6 MB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/0.3756, allocations: 12 kB / 475.6 MB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009614/0.3766, allocations: 417.4 kB / 476 MB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.3779, allocations: 363.4 kB / 476.3 MB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.3851, allocations: 7.079 MB / 483.4 MB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.3864, allocations: 111.8 kB / 483.5 MB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.3865, allocations: 60 kB / 483.6 MB, free: 4.066 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001354/0.3879, allocations: 0.7939 MB / 484.4 MB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004155/0.3883, allocations: 190.8 kB / 484.6 MB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004249/0.3926, allocations: 2.383 MB / 487 MB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3926, allocations: 19.94 kB / 487 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3926, allocations: 4.094 kB / 487 MB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.3926, allocations: 7.969 kB / 487 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007933/0.4006, allocations: 5.096 MB / 492.1 MB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.4006, allocations: 4 kB / 492.1 MB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009932/0.4016, allocations: 240 kB / 492.3 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.4027, allocations: 459.3 kB / 492.8 MB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.645e-05/0.4028, allocations: 31.98 kB / 492.8 MB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007794/0.4106, allocations: 8.654 MB / 0.4897 GB, free: 1.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.4106, allocations: 8 kB / 0.4897 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005316/0.416, allocations: 3.522 MB / 0.4931 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009296/0.4169, allocations: 443.9 kB / 0.4936 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003946/0.4173, allocations: 35.98 kB / 0.4936 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.4184, allocations: 87.89 kB / 0.4937 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002786/0.4187, allocations: 116.7 kB / 0.4938 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.088e-05/0.4188, allocations: 43.98 kB / 0.4938 GB, free: 13.08 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001974/0.4208, allocations: 1.198 MB / 0.495 GB, free: 11.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4208, allocations: 0 / 0.495 GB, free: 11.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001737/0.4225, allocations: 0.5038 MB / 0.4955 GB, free: 11.38 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.000416/0.4229, allocations: 206.8 kB / 0.4957 GB, free: 11.17 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004158/0.4271, allocations: 2.469 MB / 0.4981 GB, free: 8.641 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.4271, allocations: 4 kB / 0.4981 GB, free: 8.637 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.4297, allocations: 1.61 MB / 0.4997 GB, free: 6.98 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/0.4322, allocations: 473.6 kB / 0.5001 GB, free: 6.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007922/0.4401, allocations: 5.074 MB / 0.5051 GB, free: 1.367 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00199/0.4421, allocations: 2.009 MB / 0.5071 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001321/0.4434, allocations: 439.5 kB / 0.5075 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/0.4439, allocations: 127.4 kB / 0.5076 GB, free: 14.77 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4439, allocations: 0 / 0.5076 GB, free: 14.77 MB / 446.1 MB Notification: Performance of Templates: time 0.05053/0.4944, allocations: 28.23 MB / 0.5352 GB, free: 2.793 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches