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.001104/0.001104, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001058/0.001058, allocations: 144.4 kB / 24.97 MB, free: 8.379 MB / 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.903/0.903, allocations: 173.4 MB / 201.5 MB, free: 9.348 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.322e-06/1.322e-06, allocations: 0 / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.888e-05, allocations: 2.312 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.008271/0.00829, allocations: 10.09 MB / 278.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004818/0.01311, allocations: 3.166 MB / 281.3 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006868/0.01379, allocations: 75.5 kB / 281.4 MB, free: 9.348 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.01491, allocations: 0.6946 MB / 282.1 MB, free: 8.648 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001497/0.0164, allocations: 0.9158 MB / 283 MB, free: 7.727 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005554/0.01696, allocations: 415.3 kB / 283.4 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002329/0.01929, allocations: 3.057 MB / 286.5 MB, free: 4.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.02056, allocations: 1.352 MB / 287.8 MB, free: 2.832 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.02234, allocations: 2.019 MB / 289.9 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1056/0.1279, allocations: 1.604 MB / 291.5 MB, free: 17.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008863/0.1288, allocations: 354.2 kB / 291.8 MB, free: 17.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.1299, allocations: 453.7 kB / 292.3 MB, free: 17.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007815/0.1307, allocations: 1.073 MB / 293.3 MB, free: 17.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.1322, allocations: 1.113 MB / 294.4 MB, free: 17.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003095/0.1353, allocations: 2.634 MB / 297.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1353, allocations: 0.6875 kB / 297.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1353, allocations: 1.438 kB / 297.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.509e-05/0.1354, allocations: 3.062 kB / 297.1 MB, free: 17.73 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.004934/0.1403, allocations: 3.432 MB / 300.5 MB, free: 16.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.1404, allocations: 10.48 kB / 300.5 MB, free: 16.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.1414, allocations: 0.5296 MB / 301 MB, free: 16.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001869/0.1432, allocations: 1.603 MB / 302.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.519e-05/0.1433, allocations: 179.9 kB / 302.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.1436, allocations: 234.6 kB / 303.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/0.146, allocations: 1.917 MB / 305 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.641e-05/0.146, allocations: 11.05 kB / 305 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.1462, allocations: 93.91 kB / 305.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.441e-05/0.1462, allocations: 106.7 kB / 305.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.1479, allocations: 0.8732 MB / 306.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006679/0.1545, allocations: 8.008 MB / 314.1 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009663/0.1555, allocations: 0.788 MB / 314.8 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006937/0.1562, allocations: 0.5453 MB / 315.4 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001523/0.1563, allocations: 64.86 kB / 315.5 MB, free: 8.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.1564, allocations: 49.52 kB / 315.5 MB, free: 8.562 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 2.625e-06/0.1564, allocations: 0 / 315.5 MB, free: 8.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=131): time 0.004536/0.1609, allocations: 3.379 MB / 318.9 MB, free: 5.348 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.116e-05/0.1609, allocations: 64.72 kB / 318.9 MB, free: 5.273 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.162, allocations: 1.408 MB / 320.4 MB, free: 3.844 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.736e-05/0.162, allocations: 53.7 kB / 320.4 MB, free: 3.785 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000385/0.1624, allocations: 1.269 MB / 321.7 MB, free: 2.512 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001831/0.1626, allocations: 485.2 kB / 322.2 MB, free: 2.043 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002507/0.1628, allocations: 289.1 kB / 322.4 MB, free: 1.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.191e-05/0.1629, allocations: 480.8 kB / 322.9 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003622/0.1632, allocations: 239.8 kB / 323.1 MB, free: 1.043 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.1637, allocations: 0.8157 MB / 324 MB, free: 0 / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.1649, allocations: 1.174 MB / 325.1 MB, free: 14.64 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1649, allocations: 4 kB / 325.1 MB, free: 14.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.0019/0.1668, allocations: 1.436 MB / 326.6 MB, free: 13.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1668, allocations: 16.56 kB / 326.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1668, allocations: 12 kB / 326.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005334/0.1674, allocations: 252.4 kB / 326.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007081/0.1681, allocations: 356.4 kB / 327.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003561/0.1716, allocations: 6.619 MB / 333.8 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005806/0.1722, allocations: 103.9 kB / 333.9 MB, free: 5.621 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.963e-05/0.1723, allocations: 63.98 kB / 334 MB, free: 5.559 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.0004397/0.1727, allocations: 251 kB / 334.2 MB, free: 5.324 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.173, allocations: 230.8 kB / 334.4 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.1745, allocations: 1.169 MB / 335.6 MB, free: 3.918 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.1745, allocations: 16.03 kB / 335.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.1745, allocations: 7.984 kB / 335.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.1746, allocations: 3.984 kB / 335.6 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003903/0.1785, allocations: 3.313 MB / 339 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1785, allocations: 4 kB / 339 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000524/0.179, allocations: 236.1 kB / 339.2 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00062/0.1796, allocations: 300 kB / 339.5 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-05/0.1797, allocations: 39.94 kB / 339.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00405/0.1837, allocations: 8.413 MB / 347.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.1837, allocations: 4 kB / 347.9 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.1858, allocations: 1.727 MB / 349.7 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004151/0.1862, allocations: 326.7 kB / 350 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.1863, allocations: 32 kB / 350 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004576/0.1868, allocations: 83.91 kB / 350.1 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.187, allocations: 128.2 kB / 350.2 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-05/0.187, allocations: 36 kB / 350.3 MB, free: 4.719 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008025/0.1878, allocations: 0.8157 MB / 351.1 MB, free: 3.906 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1878, allocations: 0 / 351.1 MB, free: 3.906 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001112/0.1889, allocations: 0.4999 MB / 351.6 MB, free: 3.402 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%), (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.0002853/0.1892, allocations: 203.8 kB / 351.8 MB, free: 3.211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.1909, allocations: 1.536 MB / 353.3 MB, free: 1.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1909, allocations: 2.953 kB / 353.3 MB, free: 1.664 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.192, allocations: 1.3 MB / 354.6 MB, free: 324 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.1932, allocations: 428.7 kB / 355 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005126/0.1983, allocations: 4.268 MB / 359.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005407/0.1988, allocations: 0.656 MB / 360 MB, free: 10.87 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006397/0.1995, allocations: 342.2 kB / 360.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/0.1998, allocations: 124.5 kB / 360.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1998, allocations: 0 / 360.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of Templates: time 0.03227/0.232, allocations: 26.87 MB / 387.3 MB, free: 15.93 MB / 346.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.2807243149727583]