Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 76.08 kB / 20.68 MB, free: 1.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 162.7 kB / 23.96 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.441/1.441, allocations: 177.1 MB / 204.3 MB, free: 9.156 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 3.938 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.354e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01198/0.012, allocations: 9.065 MB / 334.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006963/0.01897, allocations: 3.147 MB / 337.3 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.02068, allocations: 78.69 kB / 337.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.02266, allocations: 0.7029 MB / 338.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002978/0.02564, allocations: 0.9229 MB / 339 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009947/0.02663, allocations: 424.7 kB / 339.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003923/0.03056, allocations: 3.081 MB / 342.5 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/0.03258, allocations: 1.341 MB / 343.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003324/0.03591, allocations: 2.011 MB / 345.8 MB, free: 248 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00277/0.03868, allocations: 1.496 MB / 347.3 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000657/0.03933, allocations: 356 kB / 347.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.04045, allocations: 471.7 kB / 348.1 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.04162, allocations: 1.056 MB / 349.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001749/0.04337, allocations: 1.099 MB / 350.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005945/0.04932, allocations: 4.764 MB / 355.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.04932, allocations: 4 kB / 355.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.04932, allocations: 4 kB / 355.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001147/0.04944, allocations: 0 / 355.1 MB, free: 6.988 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007303/0.05674, allocations: 3.249 MB / 358.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.05678, allocations: 12.03 kB / 358.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.058, allocations: 382.9 kB / 358.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003319/0.06132, allocations: 1.712 MB / 360.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.0615, allocations: 173 kB / 360.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003955/0.06189, allocations: 228.4 kB / 360.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005766/0.06766, allocations: 3.245 MB / 364.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.993e-05/0.06772, allocations: 7.938 kB / 364.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002483/0.06796, allocations: 99.98 kB / 364.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.0681, allocations: 104.6 kB / 364.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004914/0.07302, allocations: 2.688 MB / 366.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01512/0.08813, allocations: 8.394 MB / 375.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00258/0.09071, allocations: 1.399 MB / 376.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002044/0.09276, allocations: 1.051 MB / 377.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002279/0.09299, allocations: 48.95 kB / 377.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.09303, allocations: 47.5 kB / 377.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.136e-06/0.09303, allocations: 4 kB / 377.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.01495/0.108, allocations: 6.332 MB / 384.2 MB, free: 9.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.108, allocations: 68.66 kB / 384.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002411/0.1104, allocations: 1.627 MB / 385.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.1106, allocations: 45.7 kB / 386 MB, free: 7.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009824/0.1115, allocations: 1.189 MB / 387.2 MB, free: 6.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004228/0.112, allocations: 476 kB / 387.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000503/0.1125, allocations: 287.4 kB / 387.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1126, allocations: 301.1 kB / 388.2 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.114, allocations: 0.7964 MB / 389 MB, free: 4.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.1158, allocations: 1.193 MB / 390.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003348/0.1191, allocations: 2.105 MB / 392.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.1191, allocations: 4 kB / 392.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004877/0.124, allocations: 2.588 MB / 394.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.124, allocations: 8 kB / 394.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.1241, allocations: 12 kB / 394.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.1251, allocations: 421.9 kB / 395.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.1266, allocations: 359.4 kB / 395.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007817/0.1344, allocations: 6.65 MB / 402.3 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.136, allocations: 115.8 kB / 402.4 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.1361, allocations: 60 kB / 402.5 MB, free: 6.305 MB / 366.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.001572/0.1377, allocations: 0.7971 MB / 403.3 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004473/0.1382, allocations: 186.9 kB / 403.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00465/0.1428, allocations: 2.283 MB / 405.7 MB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.1428, allocations: 12 kB / 405.8 MB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.1428, allocations: 4 kB / 405.8 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.1428, allocations: 7.969 kB / 405.8 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009147/0.152, allocations: 4.447 MB / 410.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.152, allocations: 0 / 410.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.1531, allocations: 239.6 kB / 410.4 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.1544, allocations: 447.4 kB / 410.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/0.1545, allocations: 35.98 kB / 410.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009449/0.164, allocations: 8.082 MB / 419 MB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.371e-06/0.164, allocations: 4 kB / 419 MB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006571/0.1706, allocations: 3.419 MB / 422.4 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.1717, allocations: 346.8 kB / 422.8 MB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003675/0.1721, allocations: 35.98 kB / 422.8 MB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.1732, allocations: 83.91 kB / 422.9 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003623/0.1735, allocations: 124.7 kB / 423 MB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.1736, allocations: 43.92 kB / 423 MB, free: 1.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001827/0.1755, allocations: 1.097 MB / 424.1 MB, free: 20 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1755, allocations: 0 / 424.1 MB, free: 20 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.002001/0.1775, allocations: 0.5 MB / 424.6 MB, free: 15.52 MB / 398.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.0004916/0.178, allocations: 197.9 kB / 424.8 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004448/0.1824, allocations: 2.315 MB / 427.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.1824, allocations: 0 / 427.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002846/0.1853, allocations: 1.56 MB / 428.7 MB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0022/0.1875, allocations: 427.6 kB / 429.1 MB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008525/0.196, allocations: 4.908 MB / 434 MB, free: 5.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001787/0.1978, allocations: 1.447 MB / 435.5 MB, free: 4.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001365/0.1991, allocations: 418.3 kB / 435.9 MB, free: 4.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004211/0.1995, allocations: 124.5 kB / 436 MB, free: 3.938 MB / 398.1 MB Notification: Performance of SimCode: time 1.103e-06/0.1996, allocations: 4 kB / 436 MB, free: 3.934 MB / 398.1 MB Notification: Performance of Templates: time 0.0509/0.2504, allocations: 26.82 MB / 462.8 MB, free: 9.426 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.404942814260721]