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.001058/0.001058, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001021/0.001021, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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.9224/0.9224, allocations: 177.1 MB / 205 MB, free: 5.301 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.212e-06/1.212e-06, allocations: 0 / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.1e-05, allocations: 5.828 kB / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.008204/0.008225, allocations: 10.16 MB / 283.2 MB, free: 7.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004931/0.01316, allocations: 3.264 MB / 286.4 MB, free: 3.906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009226/0.01408, allocations: 75.5 kB / 286.5 MB, free: 3.832 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.01534, allocations: 0.6945 MB / 287.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001747/0.01708, allocations: 0.9274 MB / 288.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.01773, allocations: 435.2 kB / 288.5 MB, free: 1.773 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.104/0.1218, allocations: 3.071 MB / 291.6 MB, free: 16.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.1237, allocations: 1.339 MB / 293 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003257/0.127, allocations: 2.276 MB / 295.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002421/0.1294, allocations: 1.525 MB / 296.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.1304, allocations: 342.4 kB / 297.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1316, allocations: 453.3 kB / 297.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009094/0.1325, allocations: 1.027 MB / 298.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001987/0.1345, allocations: 1.088 MB / 299.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003043/0.1375, allocations: 2.597 MB / 302.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1375, allocations: 0 / 302.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1375, allocations: 0.75 kB / 302.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.261e-05/0.1376, allocations: 0 / 302.2 MB, free: 14.11 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.003568/0.1411, allocations: 3.387 MB / 305.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1412, allocations: 11.95 kB / 305.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008345/0.142, allocations: 0.5493 MB / 306.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/0.1437, allocations: 1.652 MB / 307.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-05/0.1437, allocations: 176.8 kB / 308 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001922/0.1439, allocations: 236.2 kB / 308.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.1461, allocations: 1.923 MB / 310.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.367e-05/0.1462, allocations: 7.891 kB / 310.2 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.1463, allocations: 91.94 kB / 310.3 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.276e-05/0.1464, allocations: 109.4 kB / 310.4 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.1478, allocations: 0.8719 MB / 311.2 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006769/0.1546, allocations: 7.861 MB / 319.1 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.1556, allocations: 0.8311 MB / 319.9 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006775/0.1563, allocations: 0.5331 MB / 320.5 MB, free: 240 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001601/0.1564, allocations: 60.97 kB / 320.5 MB, free: 176 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.1565, allocations: 50.39 kB / 320.6 MB, free: 116 kB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 3.838e-06/0.1565, allocations: 0 / 320.6 MB, free: 116 kB / 266.7 MB Notification: Performance of matching and sorting (n=131): time 0.00575/0.1622, allocations: 3.342 MB / 323.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.1622, allocations: 64.72 kB / 324 MB, free: 12.69 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.1636, allocations: 1.417 MB / 325.4 MB, free: 11.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.671e-05/0.1637, allocations: 45.7 kB / 325.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006444/0.1643, allocations: 1.28 MB / 326.7 MB, free: 9.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003007/0.1646, allocations: 484.5 kB / 327.2 MB, free: 9.445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002968/0.1649, allocations: 289.1 kB / 327.5 MB, free: 9.152 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.811e-05/0.165, allocations: 480.8 kB / 328 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004115/0.1655, allocations: 243.8 kB / 328.2 MB, free: 8.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006473/0.1661, allocations: 0.8098 MB / 329 MB, free: 7.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.1675, allocations: 1.171 MB / 330.2 MB, free: 6.059 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.1675, allocations: 0 / 330.2 MB, free: 6.059 MB / 282.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001955/0.1695, allocations: 1.431 MB / 331.6 MB, free: 4.691 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.1695, allocations: 16.56 kB / 331.6 MB, free: 4.676 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.1695, allocations: 12 kB / 331.6 MB, free: 4.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005701/0.1701, allocations: 253.1 kB / 331.9 MB, free: 4.406 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000742/0.1708, allocations: 344.8 kB / 332.2 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.1748, allocations: 6.612 MB / 338.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008374/0.1757, allocations: 91.88 kB / 338.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.188e-05/0.1757, allocations: 63.98 kB / 339 MB, free: 13 MB / 298.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.0005935/0.1763, allocations: 248.6 kB / 339.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002786/0.1766, allocations: 230.8 kB / 339.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.1782, allocations: 1.163 MB / 340.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.1782, allocations: 12 kB / 340.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1782, allocations: 4 kB / 340.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.1782, allocations: 7.969 kB / 340.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004072/0.1823, allocations: 3.291 MB / 343.9 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.1823, allocations: 12.03 kB / 343.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008225/0.1831, allocations: 218.5 kB / 344.1 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006046/0.1837, allocations: 284 kB / 344.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.159e-05/0.1838, allocations: 35.98 kB / 344.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004495/0.1883, allocations: 8.333 MB / 352.8 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.1883, allocations: 11.5 kB / 352.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.1906, allocations: 1.699 MB / 354.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005333/0.1911, allocations: 322.3 kB / 354.8 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.1913, allocations: 32 kB / 354.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.1917, allocations: 67.94 kB / 354.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.1919, allocations: 124 kB / 355 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-05/0.192, allocations: 39.98 kB / 355.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008853/0.1928, allocations: 0.8085 MB / 355.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1928, allocations: 0 / 355.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001289/0.1941, allocations: 0.496 MB / 356.4 MB, free: 11.02 MB / 314.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.0003285/0.1945, allocations: 197.7 kB / 356.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.1963, allocations: 1.529 MB / 358.1 MB, free: 9.297 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1963, allocations: 0 / 358.1 MB, free: 9.297 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.1979, allocations: 1.281 MB / 359.4 MB, free: 7.969 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.1993, allocations: 430.7 kB / 359.8 MB, free: 7.566 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005834/0.2051, allocations: 4.241 MB / 364 MB, free: 3.234 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005613/0.2057, allocations: 0.6599 MB / 364.7 MB, free: 2.543 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008438/0.2065, allocations: 354.2 kB / 365.1 MB, free: 2.191 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.2068, allocations: 116.5 kB / 365.2 MB, free: 2.078 MB / 314.7 MB Notification: Performance of SimCode: time 1.463e-06/0.2068, allocations: 0 / 365.2 MB, free: 2.078 MB / 314.7 MB Notification: Performance of Templates: time 0.03642/0.2432, allocations: 27.13 MB / 392.3 MB, free: 7.379 MB / 346.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 -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.336512068286538]