Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_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.0009523/0.0009523, 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.0008719/0.0008719, allocations: 138.7 kB / 24.97 MB, free: 8.359 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.9789/0.9789, allocations: 173.4 MB / 201.5 MB, free: 9.32 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.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 3.938 kB / 268.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.987e-05/2.181e-05, allocations: 2.312 kB / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01334/0.01337, allocations: 11.63 MB / 279.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007311/0.02068, allocations: 3.862 MB / 283.6 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.02174, allocations: 79.5 kB / 283.7 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.02356, allocations: 0.835 MB / 284.5 MB, free: 6.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002182/0.02575, allocations: 1.075 MB / 285.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008477/0.02659, allocations: 0.5226 MB / 286.1 MB, free: 4.625 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002401/0.02899, allocations: 3.559 MB / 289.6 MB, free: 1.047 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1088/0.1378, allocations: 1.498 MB / 291.1 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00332/0.1411, allocations: 2.312 MB / 293.5 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.1436, allocations: 1.809 MB / 295.3 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008615/0.1445, allocations: 408.8 kB / 295.7 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001048/0.1455, allocations: 0.6263 MB / 296.3 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009597/0.1465, allocations: 1.211 MB / 297.5 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001723/0.1482, allocations: 1.277 MB / 298.8 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002692/0.1509, allocations: 3.052 MB / 301.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1509, allocations: 1.25 kB / 301.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.1509, allocations: 1.062 kB / 301.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.71e-05/0.151, allocations: 0 / 301.8 MB, free: 15.84 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.003836/0.1548, allocations: 3.897 MB / 305.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1548, allocations: 9.703 kB / 305.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009442/0.1558, allocations: 0.6521 MB / 306.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.1575, allocations: 1.789 MB / 308.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.73e-05/0.1576, allocations: 210.4 kB / 308.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002286/0.1578, allocations: 270 kB / 308.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002353/0.1602, allocations: 2.198 MB / 310.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.841e-05/0.1602, allocations: 7.812 kB / 310.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001677/0.1604, allocations: 116.3 kB / 311 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.948e-05/0.1605, allocations: 119.2 kB / 311.1 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.1621, allocations: 1.005 MB / 312.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007165/0.1693, allocations: 9.18 MB / 321.3 MB, free: 2.137 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009721/0.1703, allocations: 0.8449 MB / 322.1 MB, free: 1.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007552/0.171, allocations: 0.551 MB / 322.7 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000178/0.1712, allocations: 65.27 kB / 322.7 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1712, allocations: 50.7 kB / 322.8 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of pre-optimization done (n=131): time 3.075e-06/0.1713, allocations: 0 / 322.8 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of matching and sorting (n=148): time 0.00569/0.1769, allocations: 3.759 MB / 326.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.177, allocations: 64.72 kB / 326.6 MB, free: 12.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.1784, allocations: 1.582 MB / 328.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.126e-05/0.1785, allocations: 49.7 kB / 328.2 MB, free: 11.17 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007008/0.1792, allocations: 1.438 MB / 329.7 MB, free: 9.723 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003068/0.1795, allocations: 0.5409 MB / 330.2 MB, free: 9.191 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003385/0.1799, allocations: 341.1 kB / 330.6 MB, free: 8.848 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.468e-05/0.18, allocations: 480.7 kB / 331 MB, free: 8.375 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/0.1804, allocations: 275.8 kB / 331.3 MB, free: 8.105 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007908/0.1812, allocations: 0.9576 MB / 332.2 MB, free: 6.867 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.1826, allocations: 1.389 MB / 333.6 MB, free: 5.266 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.1826, allocations: 8 kB / 333.6 MB, free: 5.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.002113/0.1847, allocations: 1.631 MB / 335.3 MB, free: 3.715 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1847, allocations: 12 kB / 335.3 MB, free: 3.703 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.1847, allocations: 12 kB / 335.3 MB, free: 3.691 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007241/0.1855, allocations: 315.1 kB / 335.6 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008206/0.1863, allocations: 421.9 kB / 336 MB, free: 2.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003287/0.1896, allocations: 5.099 MB / 341.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006515/0.1902, allocations: 115.8 kB / 341.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.926e-05/0.1903, allocations: 79.58 kB / 341.3 MB, free: 13.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004197/0.1907, allocations: 262 kB / 341.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002924/0.191, allocations: 262.7 kB / 341.8 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.1928, allocations: 1.288 MB / 343.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/0.1928, allocations: 19.94 kB / 343.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1929, allocations: 4 kB / 343.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.1929, allocations: 7.969 kB / 343.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00436/0.1972, allocations: 3.628 MB / 346.8 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1972, allocations: 4 kB / 346.8 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006095/0.1978, allocations: 275.9 kB / 347 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008121/0.1987, allocations: 363.7 kB / 347.4 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.317e-05/0.1987, allocations: 35.98 kB / 347.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003819/0.2025, allocations: 6.921 MB / 354.4 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2025, allocations: 4 kB / 354.4 MB, free: 76 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.2048, allocations: 1.888 MB / 356.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004777/0.2053, allocations: 373.9 kB / 356.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/0.2055, allocations: 36 kB / 356.6 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005432/0.206, allocations: 87.89 kB / 356.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.2062, allocations: 128.5 kB / 356.9 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-05/0.2063, allocations: 47.27 kB / 356.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009095/0.2072, allocations: 0.9257 MB / 357.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2072, allocations: 0 / 357.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001181/0.2084, allocations: 0.582 MB / 358.4 MB, free: 11.97 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,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.0003195/0.2087, allocations: 225 kB / 358.6 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.2105, allocations: 1.53 MB / 360.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.2105, allocations: 5.938 kB / 360.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.2116, allocations: 1.207 MB / 361.4 MB, free: 9.004 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.2128, allocations: 453.9 kB / 361.8 MB, free: 8.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005345/0.2181, allocations: 4.796 MB / 366.6 MB, free: 3.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005347/0.2186, allocations: 0.7085 MB / 367.3 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006635/0.2193, allocations: 363.5 kB / 367.7 MB, free: 2.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/0.2196, allocations: 136.5 kB / 367.8 MB, free: 2.457 MB / 314.7 MB Notification: Performance of SimCode: time 8.31e-07/0.2196, allocations: 0 / 367.8 MB, free: 2.457 MB / 314.7 MB Notification: Performance of Templates: time 0.03213/0.2517, allocations: 29.67 MB / 397.5 MB, free: 5.23 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_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.8504749869462103]