Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 109.6 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.001374/0.001374, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.422/1.422, allocations: 227.7 MB / 247.7 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 69.44 kB / 307.9 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1062, allocations: 50.54 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01252/0.1187, allocations: 10.22 MB / 368.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006926/0.1257, allocations: 3.31 MB / 372 MB, free: 324 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.1273, allocations: 59.75 kB / 372 MB, free: 264 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1791/0.3064, allocations: 0.6981 MB / 372.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004053/0.3105, allocations: 0.8396 MB / 373.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.3122, allocations: 420.5 kB / 374 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005422/0.3177, allocations: 2.964 MB / 376.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003492/0.3212, allocations: 2.491 MB / 379.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002972/0.3242, allocations: 1.35 MB / 380.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003637/0.3279, allocations: 1.704 MB / 382.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009096/0.3288, allocations: 353.8 kB / 382.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.3306, allocations: 466.9 kB / 383.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001328/0.332, allocations: 1.014 MB / 384.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002718/0.3347, allocations: 1.61 MB / 385.9 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005339/0.34, allocations: 4.639 MB / 390.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3401, allocations: 0 / 390.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3401, allocations: 1.438 kB / 390.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001227/0.3402, allocations: 4 kB / 390.6 MB, free: 4.602 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.007853/0.3481, allocations: 3.277 MB / 393.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3481, allocations: 10.47 kB / 393.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.3494, allocations: 363.7 kB / 394.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002964/0.3524, allocations: 1.718 MB / 395.9 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.3526, allocations: 186.6 kB / 396.1 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004229/0.3531, allocations: 238.9 kB / 396.3 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006059/0.3591, allocations: 3.132 MB / 399.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.818e-05/0.3592, allocations: 6.719 kB / 399.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002287/0.3594, allocations: 97.03 kB / 399.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/0.3596, allocations: 111.7 kB / 399.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005258/0.3648, allocations: 2.693 MB / 402.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01765/0.3825, allocations: 9.727 MB / 412.1 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003165/0.3857, allocations: 2.166 MB / 414.3 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/0.3878, allocations: 1.107 MB / 415.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003348/0.3882, allocations: 210.1 kB / 415.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.3883, allocations: 47.56 kB / 415.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.687e-06/0.3883, allocations: 4.688 kB / 415.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=131): time 0.01647/0.4047, allocations: 6.85 MB / 422.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.4048, allocations: 64.72 kB / 422.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003294/0.4081, allocations: 1.755 MB / 424.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002989/0.4085, allocations: 53.7 kB / 424.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001036/0.4095, allocations: 1.161 MB / 425.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005218/0.4101, allocations: 446.2 kB / 425.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005147/0.4106, allocations: 284.7 kB / 426.2 MB, free: 4.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4107, allocations: 315.4 kB / 426.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.4122, allocations: 0.7964 MB / 427.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/0.4142, allocations: 1.201 MB / 428.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/0.4176, allocations: 2.09 MB / 430.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.4176, allocations: 4 kB / 430.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005273/0.4229, allocations: 2.678 MB / 433.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.4229, allocations: 8 kB / 433.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/0.423, allocations: 12 kB / 433.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.4241, allocations: 422.5 kB / 433.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.4255, allocations: 367.3 kB / 434.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008163/0.4337, allocations: 7.075 MB / 441.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.4356, allocations: 111.8 kB / 441.3 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002123/0.4358, allocations: 67.98 kB / 441.3 MB, free: 4.359 MB / 350.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.001772/0.4376, allocations: 0.8007 MB / 442.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005686/0.4381, allocations: 185.8 kB / 442.3 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004646/0.4428, allocations: 2.372 MB / 444.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.4428, allocations: 15.94 kB / 444.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.4429, allocations: 7.938 kB / 444.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.4429, allocations: 7.969 kB / 444.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.4532, allocations: 5.132 MB / 449.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.4532, allocations: 8.031 kB / 449.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.4543, allocations: 235.6 kB / 450.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.4555, allocations: 446.9 kB / 450.5 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.4557, allocations: 39.98 kB / 450.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009298/0.465, allocations: 8.646 MB / 459.2 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.465, allocations: 7.938 kB / 459.2 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006197/0.4712, allocations: 3.518 MB / 462.7 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/0.4725, allocations: 434.7 kB / 463.2 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003683/0.4729, allocations: 32 kB / 463.2 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009687/0.4739, allocations: 79.91 kB / 463.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002986/0.4742, allocations: 124.7 kB / 463.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-05/0.4743, allocations: 43.98 kB / 463.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002119/0.4764, allocations: 1.199 MB / 464.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4764, allocations: 0 / 464.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002586/0.479, allocations: 0.5116 MB / 465.1 MB, free: 11.74 MB / 382.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.0005458/0.4796, allocations: 196.8 kB / 465.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006301/0.4859, allocations: 3.11 MB / 468.4 MB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.4859, allocations: 3.938 kB / 468.4 MB, free: 8.363 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002913/0.4889, allocations: 1.608 MB / 470.1 MB, free: 6.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.4916, allocations: 488.3 kB / 470.5 MB, free: 6.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009204/0.5008, allocations: 5.091 MB / 475.6 MB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001954/0.5028, allocations: 1.965 MB / 477.6 MB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007015/0.5035, allocations: 139.4 kB / 477.7 MB, free: 14.94 MB / 398.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5035, allocations: 0 / 477.7 MB, free: 14.94 MB / 398.1 MB Notification: Performance of Templates: time 0.2442/0.7477, allocations: 79.58 MB / 0.5442 GB, free: 144.9 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches