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.001302/0.001302, allocations: 99.58 kB / 16.5 MB, free: 6.641 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.001434/0.001434, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.378/1.378, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009971/0.0009971, allocations: 46 kB / 299.9 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08824, allocations: 49.45 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01177/0.1001, allocations: 10.12 MB / 359.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006447/0.1066, allocations: 3.194 MB / 362.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001743/0.1083, allocations: 55.75 kB / 362.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002255/0.1107, allocations: 0.6175 MB / 363.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002751/0.1134, allocations: 0.7499 MB / 364.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.1146, allocations: 363.6 kB / 364.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003916/0.1185, allocations: 3.366 MB / 367.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002706/0.1212, allocations: 2.096 MB / 369.9 MB, free: 164 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1709/0.2922, allocations: 1.156 MB / 371.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002198/0.2944, allocations: 1.631 MB / 372.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005227/0.295, allocations: 216.7 kB / 372.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000801/0.2958, allocations: 328.3 kB / 373.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000893/0.2967, allocations: 0.88 MB / 374.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.2982, allocations: 1.452 MB / 375.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004324/0.3025, allocations: 4.508 MB / 380.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3025, allocations: 0 / 380.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3025, allocations: 1.094 kB / 380.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001094/0.3027, allocations: 1.344 kB / 380.1 MB, free: 11.08 MB / 302.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.007003/0.3097, allocations: 3.26 MB / 383.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3097, allocations: 9 kB / 383.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008499/0.3106, allocations: 329.5 kB / 383.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002679/0.3133, allocations: 1.701 MB / 385.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/0.3134, allocations: 180.2 kB / 385.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003298/0.3138, allocations: 242.7 kB / 385.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00475/0.3185, allocations: 3.136 MB / 389 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.312e-05/0.3186, allocations: 7.906 kB / 389 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000212/0.3188, allocations: 95.94 kB / 389.1 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.468e-05/0.3189, allocations: 104.9 kB / 389.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004031/0.3229, allocations: 2.697 MB / 391.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0136/0.3366, allocations: 9.717 MB / 401.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002613/0.3392, allocations: 2.172 MB / 403.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00185/0.3411, allocations: 1.12 MB / 404.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003183/0.3414, allocations: 202.4 kB / 405.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.3415, allocations: 47.56 kB / 405.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.027e-06/0.3415, allocations: 0 / 405.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01404/0.3555, allocations: 6.839 MB / 411.9 MB, free: 3.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.3556, allocations: 64.72 kB / 412 MB, free: 3.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.358, allocations: 1.747 MB / 413.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.141e-05/0.3581, allocations: 45.7 kB / 413.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007501/0.3589, allocations: 1.154 MB / 415 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003293/0.3592, allocations: 451.5 kB / 415.4 MB, free: 372 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004406/0.3597, allocations: 287.3 kB / 415.7 MB, free: 80 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3598, allocations: 309 kB / 416 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.361, allocations: 0.7886 MB / 416.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.3625, allocations: 1.207 MB / 418 MB, free: 13.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002763/0.3653, allocations: 2.096 MB / 420.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.3653, allocations: 4 kB / 420.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004198/0.3695, allocations: 2.675 MB / 422.7 MB, free: 8.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3696, allocations: 8 kB / 422.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.3696, allocations: 12.56 kB / 422.8 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009593/0.3705, allocations: 419.5 kB / 423.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.3719, allocations: 366 kB / 423.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006338/0.3782, allocations: 6.493 MB / 430 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.3796, allocations: 107.8 kB / 430.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.3797, allocations: 60 kB / 430.2 MB, free: 0.9648 MB / 334.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.001308/0.381, allocations: 0.7997 MB / 431 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.3813, allocations: 189.6 kB / 431.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00387/0.3852, allocations: 2.376 MB / 433.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3852, allocations: 12 kB / 433.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3852, allocations: 4 kB / 433.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3853, allocations: 6.609 kB / 433.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007902/0.3932, allocations: 5.126 MB / 438.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.3932, allocations: 4.406 kB / 438.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00099/0.3942, allocations: 238.3 kB / 438.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.3953, allocations: 452.8 kB / 439.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.776e-05/0.3954, allocations: 35.98 kB / 439.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007367/0.4028, allocations: 7.945 MB / 447.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4028, allocations: 6.625 kB / 447.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005591/0.4084, allocations: 3.52 MB / 450.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/0.4095, allocations: 434.7 kB / 451.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.4097, allocations: 28 kB / 451.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009301/0.4107, allocations: 83.91 kB / 451.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/0.4109, allocations: 123.4 kB / 451.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.496e-05/0.411, allocations: 39.98 kB / 451.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001834/0.4129, allocations: 1.194 MB / 452.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4129, allocations: 0 / 452.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001786/0.4147, allocations: 0.504 MB / 453.3 MB, free: 9.227 MB / 366.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.0004045/0.4151, allocations: 211.2 kB / 453.5 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003865/0.419, allocations: 2.46 MB / 455.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.419, allocations: 0 / 455.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/0.4214, allocations: 1.609 MB / 457.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002187/0.4236, allocations: 451.9 kB / 458 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009465/0.4331, allocations: 6.079 MB / 464.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001738/0.4348, allocations: 2.005 MB / 466.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001624/0.4365, allocations: 439.5 kB / 466.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004374/0.4369, allocations: 127.4 kB / 466.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4369, allocations: 0 / 466.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of Templates: time 0.04654/0.4835, allocations: 26.59 MB / 493.2 MB, free: 1.477 MB / 398.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