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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9247/0.9247, allocations: 173.3 MB / 201.1 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",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=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.689e-05/1.841e-05, allocations: 2.312 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.008912/0.008931, allocations: 10.12 MB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005497/0.01443, allocations: 3.182 MB / 281.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009509/0.01538, allocations: 71.5 kB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.0166, allocations: 0.6907 MB / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001759/0.01836, allocations: 0.9235 MB / 283 MB, free: 7.352 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006542/0.01902, allocations: 415.3 kB / 283.4 MB, free: 6.945 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002405/0.02142, allocations: 3.073 MB / 286.5 MB, free: 3.863 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001324/0.02275, allocations: 1.337 MB / 287.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002373/0.02512, allocations: 2.265 MB / 290.1 MB, free: 196 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.12/0.1451, allocations: 1.515 MB / 291.6 MB, free: 17.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001412/0.1466, allocations: 342.2 kB / 291.9 MB, free: 17.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.1477, allocations: 441.6 kB / 292.4 MB, free: 17.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008392/0.1485, allocations: 1.026 MB / 293.4 MB, free: 17.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.1501, allocations: 1.083 MB / 294.5 MB, free: 17.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003275/0.1533, allocations: 2.582 MB / 297 MB, free: 17.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1533, allocations: 0 / 297 MB, free: 17.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1533, allocations: 1.844 kB / 297.1 MB, free: 17.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.767e-05/0.1534, allocations: 0 / 297.1 MB, free: 17.46 MB / 266.7 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.004476/0.1579, allocations: 3.365 MB / 300.4 MB, free: 16.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.158, allocations: 10.33 kB / 300.4 MB, free: 16.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007612/0.1587, allocations: 0.5301 MB / 301 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.1603, allocations: 1.618 MB / 302.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.763e-05/0.1604, allocations: 176.7 kB / 302.7 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002232/0.1607, allocations: 234.5 kB / 303 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002283/0.1629, allocations: 1.917 MB / 304.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/0.163, allocations: 11.42 kB / 304.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.1631, allocations: 96.19 kB / 305 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.057e-05/0.1632, allocations: 105.3 kB / 305.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.1647, allocations: 0.8721 MB / 306 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006073/0.1707, allocations: 7.864 MB / 313.8 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009863/0.1717, allocations: 0.8315 MB / 314.7 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006672/0.1724, allocations: 0.5497 MB / 315.2 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.1725, allocations: 61.52 kB / 315.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1726, allocations: 48.08 kB / 315.3 MB, free: 8.637 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 2.444e-06/0.1726, allocations: 0 / 315.3 MB, free: 8.637 MB / 266.7 MB Notification: Performance of matching and sorting (n=131): time 0.004238/0.1768, allocations: 3.332 MB / 318.7 MB, free: 5.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.1768, allocations: 64.72 kB / 318.7 MB, free: 5.336 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.1779, allocations: 1.4 MB / 320.1 MB, free: 3.914 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/0.1779, allocations: 49.7 kB / 320.2 MB, free: 3.859 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004123/0.1783, allocations: 1.273 MB / 321.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.1785, allocations: 484.5 kB / 321.9 MB, free: 2.113 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002445/0.1787, allocations: 292.1 kB / 322.2 MB, free: 1.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.428e-05/0.1788, allocations: 480.8 kB / 322.7 MB, free: 1.348 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003411/0.1791, allocations: 239.8 kB / 322.9 MB, free: 1.113 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.1796, allocations: 0.8076 MB / 323.7 MB, free: 76 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.181, allocations: 1.164 MB / 324.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.181, allocations: 8 kB / 324.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001792/0.1828, allocations: 1.434 MB / 326.3 MB, free: 13.35 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.1828, allocations: 15.94 kB / 326.3 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.1829, allocations: 14.95 kB / 326.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005373/0.1834, allocations: 245.9 kB / 326.6 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/0.1841, allocations: 348.2 kB / 326.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003738/0.1878, allocations: 6.606 MB / 333.5 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005182/0.1883, allocations: 91.88 kB / 333.6 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.253e-05/0.1884, allocations: 64 kB / 333.7 MB, free: 5.672 MB / 282.7 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.0004067/0.1888, allocations: 251 kB / 333.9 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.1891, allocations: 230.8 kB / 334.2 MB, free: 5.211 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.1905, allocations: 1.16 MB / 335.3 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.1905, allocations: 16 kB / 335.3 MB, free: 4.027 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.1905, allocations: 4 kB / 335.3 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1905, allocations: 3.984 kB / 335.3 MB, free: 4.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/0.1942, allocations: 3.271 MB / 338.6 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.1942, allocations: 0 / 338.6 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/0.1947, allocations: 227 kB / 338.8 MB, free: 500 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005529/0.1953, allocations: 283.2 kB / 339.1 MB, free: 204 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.094e-05/0.1953, allocations: 31.98 kB / 339.1 MB, free: 172 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003891/0.1992, allocations: 8.341 MB / 347.5 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.1992, allocations: 5.875 kB / 347.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.2012, allocations: 1.704 MB / 349.2 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003878/0.2016, allocations: 318.6 kB / 349.5 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.2017, allocations: 35.98 kB / 349.5 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004008/0.2021, allocations: 67.94 kB / 349.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/0.2023, allocations: 128 kB / 349.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.217e-05/0.2023, allocations: 40 kB / 349.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007368/0.2031, allocations: 0.8026 MB / 350.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2031, allocations: 0 / 350.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001044/0.2041, allocations: 500 kB / 351.1 MB, free: 3.75 MB / 298.7 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000284/0.2044, allocations: 206.2 kB / 351.3 MB, free: 3.559 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.206, allocations: 1.536 MB / 352.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.206, allocations: 0 / 352.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.2072, allocations: 1.276 MB / 354.1 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.2083, allocations: 424.3 kB / 354.5 MB, free: 300 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005015/0.2133, allocations: 4.247 MB / 358.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005142/0.2138, allocations: 0.656 MB / 359.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006228/0.2144, allocations: 342.1 kB / 359.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.2147, allocations: 128.5 kB / 359.8 MB, free: 10.81 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.2147, allocations: 0 / 359.8 MB, free: 10.81 MB / 314.7 MB Notification: Performance of Templates: time 0.03317/0.2478, allocations: 26.98 MB / 386.8 MB, free: 240 kB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2523766942322254]