Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009887/0.0009887, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9407/0.9407, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.406e-05/1.532e-05, allocations: 2.312 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008949/0.008964, allocations: 11.39 MB / 284.3 MB, free: 5.984 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005776/0.01474, allocations: 3.877 MB / 288.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.0158, allocations: 79.5 kB / 288.3 MB, free: 2.016 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.01729, allocations: 0.8311 MB / 289.1 MB, free: 1.176 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00201/0.0193, allocations: 1.04 MB / 290.1 MB, free: 132 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.112/0.1313, allocations: 0.516 MB / 290.7 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003509/0.1348, allocations: 3.341 MB / 294 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.1367, allocations: 1.425 MB / 295.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003288/0.14, allocations: 2.421 MB / 297.9 MB, free: 15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002296/0.1423, allocations: 1.6 MB / 299.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007808/0.1431, allocations: 375.9 kB / 299.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000923/0.144, allocations: 0.5901 MB / 300.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006127/0.1446, allocations: 1.078 MB / 301.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.1461, allocations: 1.177 MB / 302.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002409/0.1485, allocations: 2.794 MB / 305.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1485, allocations: 0 / 305.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1485, allocations: 4.5 kB / 305.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.849e-05/0.1485, allocations: 0 / 305.5 MB, free: 12.28 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.003384/0.1519, allocations: 3.587 MB / 309 MB, free: 10.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.152, allocations: 13.77 kB / 309.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009732/0.1529, allocations: 0.659 MB / 309.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.1544, allocations: 1.719 MB / 311.4 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.673e-05/0.1545, allocations: 191.5 kB / 311.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002018/0.1547, allocations: 255.6 kB / 311.9 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002155/0.1568, allocations: 2.03 MB / 313.9 MB, free: 6.309 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.336e-05/0.1569, allocations: 11.89 kB / 313.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/0.157, allocations: 100 kB / 314 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.423e-05/0.1571, allocations: 116.9 kB / 314.1 MB, free: 6.082 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.1586, allocations: 0.9187 MB / 315 MB, free: 5.152 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006878/0.1654, allocations: 8.38 MB / 323.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009185/0.1663, allocations: 0.6983 MB / 324.1 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006877/0.167, allocations: 0.5046 MB / 324.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.1672, allocations: 54.97 kB / 324.7 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.1672, allocations: 50.39 kB / 324.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 2.274e-06/0.1672, allocations: 4 kB / 324.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.00521/0.1724, allocations: 3.567 MB / 328.3 MB, free: 7.824 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.1725, allocations: 64.72 kB / 328.4 MB, free: 7.746 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.174, allocations: 1.498 MB / 329.9 MB, free: 6.23 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.418e-05/0.1741, allocations: 53.27 kB / 329.9 MB, free: 6.176 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006299/0.1747, allocations: 1.371 MB / 331.3 MB, free: 4.793 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.175, allocations: 497.8 kB / 331.8 MB, free: 4.312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002991/0.1753, allocations: 303.4 kB / 332.1 MB, free: 4.008 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002283/0.1755, allocations: 481.5 kB / 332.5 MB, free: 3.535 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004119/0.1759, allocations: 247.8 kB / 332.8 MB, free: 3.293 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006803/0.1766, allocations: 0.9514 MB / 333.7 MB, free: 2.055 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.1778, allocations: 1.337 MB / 335.1 MB, free: 496 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.1778, allocations: 7.984 kB / 335.1 MB, free: 488 kB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001939/0.1797, allocations: 1.538 MB / 336.6 MB, free: 15.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1797, allocations: 14.81 kB / 336.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.1797, allocations: 16 kB / 336.6 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000565/0.1803, allocations: 265.4 kB / 336.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007233/0.181, allocations: 379.8 kB / 337.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.1839, allocations: 4.931 MB / 342.2 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005717/0.1845, allocations: 95.86 kB / 342.3 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.068e-05/0.1846, allocations: 79.98 kB / 342.4 MB, free: 9.086 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * 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,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003588/0.1849, allocations: 257 kB / 342.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002702/0.1852, allocations: 246.7 kB / 342.9 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/0.1867, allocations: 1.168 MB / 344 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.1867, allocations: 20 kB / 344.1 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1867, allocations: 4 kB / 344.1 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1867, allocations: 7.969 kB / 344.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.1904, allocations: 3.368 MB / 347.4 MB, free: 3.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.1904, allocations: 4.047 kB / 347.4 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005213/0.1909, allocations: 230.6 kB / 347.7 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005916/0.1915, allocations: 305.2 kB / 348 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.419e-05/0.1916, allocations: 35.98 kB / 348 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003225/0.1948, allocations: 6.64 MB / 354.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1948, allocations: 15.38 kB / 354.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.1968, allocations: 1.76 MB / 356.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003948/0.1972, allocations: 326.6 kB / 356.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.1973, allocations: 35.11 kB / 356.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.1978, allocations: 83.92 kB / 356.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.1979, allocations: 116.5 kB / 357 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.757e-05/0.198, allocations: 43.98 kB / 357 MB, free: 9.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008495/0.1989, allocations: 0.8687 MB / 357.9 MB, free: 9.125 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1989, allocations: 0 / 357.9 MB, free: 9.125 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009727/0.1998, allocations: 0.5352 MB / 358.4 MB, free: 8.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * 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,12,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.0002915/0.2001, allocations: 224.9 kB / 358.6 MB, free: 8.379 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.2016, allocations: 1.429 MB / 360.1 MB, free: 6.969 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2016, allocations: 0 / 360.1 MB, free: 6.969 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009418/0.2026, allocations: 1.111 MB / 361.2 MB, free: 5.836 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009765/0.2036, allocations: 398.7 kB / 361.6 MB, free: 5.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004644/0.2082, allocations: 4.428 MB / 366 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.2087, allocations: 0.6576 MB / 366.6 MB, free: 248 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005986/0.2093, allocations: 341 kB / 367 MB, free: 15.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/0.2095, allocations: 124.4 kB / 367.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2095, allocations: 0 / 367.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of Templates: time 0.03133/0.2409, allocations: 26.59 MB / 393.7 MB, free: 5.605 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.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.6560581983067095]