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.000977/0.000977, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 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.001078/0.001078, allocations: 168.8 kB / 24.91 MB, free: 9.199 MB / 18.57 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 0.9799/0.9799, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.1.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 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.671e-05/1.822e-05, allocations: 6.312 kB / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.008355/0.008373, allocations: 9.941 MB / 283.4 MB, free: 7.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004509/0.01288, allocations: 3.364 MB / 286.8 MB, free: 3.895 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005629/0.01345, allocations: 75.5 kB / 286.9 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.01449, allocations: 0.7178 MB / 287.6 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001295/0.01578, allocations: 0.9235 MB / 288.5 MB, free: 2.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005409/0.01632, allocations: 435.2 kB / 288.9 MB, free: 1.742 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1083/0.1246, allocations: 3.082 MB / 292 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001829/0.1264, allocations: 1.369 MB / 293.4 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003027/0.1294, allocations: 2.261 MB / 295.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002278/0.1317, allocations: 1.523 MB / 297.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007806/0.1325, allocations: 343.4 kB / 297.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008924/0.1334, allocations: 458.6 kB / 298 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008393/0.1342, allocations: 1.022 MB / 299 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.1357, allocations: 1.084 MB / 300.1 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00253/0.1382, allocations: 2.597 MB / 302.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1382, allocations: 1.031 kB / 302.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1382, allocations: 2.156 kB / 302.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.222e-05/0.1383, allocations: 0 / 302.7 MB, free: 13.91 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.003385/0.1417, allocations: 3.014 MB / 305.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.1417, allocations: 10.59 kB / 305.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008645/0.1426, allocations: 457.3 kB / 306.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.1441, allocations: 1.209 MB / 307.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-05/0.1442, allocations: 183.6 kB / 307.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002418/0.1444, allocations: 232.5 kB / 307.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.1464, allocations: 1.794 MB / 309.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.861e-05/0.1464, allocations: 10.84 kB / 309.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.1466, allocations: 97.16 kB / 309.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.189e-05/0.1467, allocations: 101.8 kB / 309.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.1478, allocations: 0.6917 MB / 310.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006229/0.1541, allocations: 6.195 MB / 316.6 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009088/0.155, allocations: 0.762 MB / 317.4 MB, free: 3.855 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006255/0.1556, allocations: 465.3 kB / 317.9 MB, free: 3.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001501/0.1557, allocations: 63.23 kB / 317.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.1558, allocations: 47.5 kB / 318 MB, free: 3.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 3.947e-06/0.1558, allocations: 0 / 318 MB, free: 3.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=131): time 0.003669/0.1594, allocations: 2.628 MB / 320.6 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.082e-05/0.1595, allocations: 72.72 kB / 320.7 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006957/0.1602, allocations: 1.142 MB / 321.8 MB, free: 15.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.192e-05/0.1602, allocations: 45.7 kB / 321.9 MB, free: 15.63 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004352/0.1607, allocations: 0.974 MB / 322.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002422/0.1609, allocations: 476 kB / 323.3 MB, free: 14.28 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.1612, allocations: 263 kB / 323.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.094e-05/0.1613, allocations: 309.1 kB / 323.9 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.1615, allocations: 178.8 kB / 324 MB, free: 13.56 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003822/0.1619, allocations: 0.5672 MB / 324.6 MB, free: 12.87 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007535/0.1627, allocations: 0.9232 MB / 325.5 MB, free: 11.87 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.1627, allocations: 4 kB / 325.5 MB, free: 11.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001236/0.1639, allocations: 1.038 MB / 326.6 MB, free: 10.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1639, allocations: 12 kB / 326.6 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1639, allocations: 15.94 kB / 326.6 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000458/0.1644, allocations: 241 kB / 326.8 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007189/0.1651, allocations: 340.7 kB / 327.2 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002612/0.1677, allocations: 4.72 MB / 331.9 MB, free: 5.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/0.1681, allocations: 59.88 kB / 331.9 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.771e-05/0.1682, allocations: 51.98 kB / 332 MB, free: 5.289 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.0003447/0.1686, allocations: 205.8 kB / 332.2 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.1687, allocations: 151.8 kB / 332.3 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.1698, allocations: 0.8955 MB / 333.2 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1698, allocations: 16 kB / 333.2 MB, free: 4.031 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.1698, allocations: 4 kB / 333.2 MB, free: 4.027 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1698, allocations: 7.969 kB / 333.3 MB, free: 4.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.1726, allocations: 2.601 MB / 335.9 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.1726, allocations: 7.984 kB / 335.9 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005783/0.1732, allocations: 283 kB / 336.1 MB, free: 1.406 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000485/0.1737, allocations: 264.2 kB / 336.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.368e-05/0.1737, allocations: 39.97 kB / 336.4 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/0.1767, allocations: 5.913 MB / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1767, allocations: 4 kB / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.1781, allocations: 1.317 MB / 343.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.1784, allocations: 230.7 kB / 343.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.1785, allocations: 28 kB / 343.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.1789, allocations: 51.97 kB / 344 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.179, allocations: 112.1 kB / 344.1 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.622e-05/0.1791, allocations: 31.73 kB / 344.1 MB, free: 9.113 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004529/0.1795, allocations: 0.5732 MB / 344.7 MB, free: 8.609 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1795, allocations: 0 / 344.7 MB, free: 8.609 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009809/0.1805, allocations: 0.496 MB / 345.2 MB, free: 8.113 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.0002408/0.1807, allocations: 180.2 kB / 345.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.1819, allocations: 1.195 MB / 346.6 MB, free: 6.781 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.086e-05/0.1819, allocations: 24.69 kB / 346.6 MB, free: 6.758 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008006/0.1827, allocations: 0.9525 MB / 347.5 MB, free: 5.797 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009583/0.1837, allocations: 432 kB / 348 MB, free: 5.391 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004232/0.1879, allocations: 4.059 MB / 352 MB, free: 1.277 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.1884, allocations: 0.5701 MB / 352.6 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000482/0.1889, allocations: 226.5 kB / 352.8 MB, free: 460 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006584/0.1895, allocations: 431.1 kB / 353.2 MB, free: 20 kB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1895, allocations: 4 kB / 353.2 MB, free: 16 kB / 298.7 MB Notification: Performance of Templates: time 0.03398/0.2235, allocations: 27.46 MB / 380.7 MB, free: 5.078 MB / 330.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 240] 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","",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.2038339441642165]