Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001318/0.001318, allocations: 80.67 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001353/0.001353, allocations: 154.9 kB / 23.94 MB, free: 4.176 MB / 14.72 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 1.416/1.416, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_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.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.952e-05/3.108e-05, allocations: 6.281 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01315/0.01319, allocations: 10.08 MB / 329 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008421/0.02161, allocations: 3.657 MB / 332.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.02369, allocations: 77.59 kB / 332.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002624/0.02632, allocations: 0.8194 MB / 333.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003513/0.02983, allocations: 1.031 MB / 334.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.03136, allocations: 0.5219 MB / 335.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004445/0.03581, allocations: 3.319 MB / 338.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00268/0.03849, allocations: 1.428 MB / 339.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003992/0.04248, allocations: 2.137 MB / 342 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003239/0.04572, allocations: 1.564 MB / 343.6 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000681/0.0464, allocations: 388 kB / 344 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.04796, allocations: 0.6087 MB / 344.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001238/0.0492, allocations: 1.106 MB / 345.7 MB, free: 0.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.05091, allocations: 1.189 MB / 346.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005897/0.05681, allocations: 5.106 MB / 352 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.05682, allocations: 0 / 352 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.05682, allocations: 3.938 kB / 352 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.745e-05/0.05692, allocations: 0 / 352 MB, free: 10.52 MB / 318.1 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.007599/0.06451, allocations: 3.453 MB / 355.4 MB, free: 7.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.06456, allocations: 12.92 kB / 355.4 MB, free: 7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.06594, allocations: 426.7 kB / 355.9 MB, free: 6.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003426/0.06936, allocations: 1.767 MB / 357.6 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.06955, allocations: 193.4 kB / 357.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004244/0.06997, allocations: 252.3 kB / 358.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00604/0.07601, allocations: 3.373 MB / 361.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.82e-05/0.07608, allocations: 15.97 kB / 361.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002747/0.07636, allocations: 100 kB / 361.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.07651, allocations: 112.9 kB / 361.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005031/0.08154, allocations: 2.697 MB / 364.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01624/0.09778, allocations: 8.929 MB / 373.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002257/0.1, allocations: 1.242 MB / 374.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/0.102, allocations: 0.9757 MB / 375.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002481/0.1022, allocations: 52.95 kB / 375.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.1023, allocations: 47.56 kB / 375.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=115): time 3.476e-06/0.1023, allocations: 0 / 375.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=134): time 0.01888/0.1212, allocations: 7.067 MB / 382.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.1212, allocations: 64.72 kB / 382.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002694/0.1239, allocations: 1.699 MB / 384.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.124, allocations: 45.7 kB / 384.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.1251, allocations: 1.282 MB / 385.7 MB, free: 8.117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000458/0.1256, allocations: 487.8 kB / 386.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005407/0.1261, allocations: 307.4 kB / 386.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1263, allocations: 301.1 kB / 386.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.1278, allocations: 0.8159 MB / 387.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.1299, allocations: 1.304 MB / 388.9 MB, free: 4.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003811/0.1337, allocations: 2.258 MB / 391.2 MB, free: 2.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.1337, allocations: 8 kB / 391.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005341/0.139, allocations: 2.705 MB / 393.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.1391, allocations: 15.12 kB / 393.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-05/0.1391, allocations: 16 kB / 393.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.1403, allocations: 414.5 kB / 394.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.1419, allocations: 407.3 kB / 394.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007434/0.1494, allocations: 5.495 MB / 400.2 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.151, allocations: 123.8 kB / 400.4 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.1512, allocations: 71.98 kB / 400.4 MB, free: 8.766 MB / 366.1 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.001753/0.1529, allocations: 0.7979 MB / 401.2 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004586/0.1534, allocations: 190.9 kB / 401.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004657/0.158, allocations: 2.291 MB / 403.7 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.615e-05/0.1581, allocations: 16 kB / 403.7 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.1581, allocations: 4 kB / 403.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.1581, allocations: 7.969 kB / 403.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009056/0.1672, allocations: 4.523 MB / 408.3 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.1672, allocations: 4.562 kB / 408.3 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.1684, allocations: 255.6 kB / 408.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/0.1697, allocations: 454.1 kB / 409 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.1698, allocations: 35.98 kB / 409 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008297/0.1781, allocations: 6.904 MB / 415.9 MB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.1781, allocations: 11.94 kB / 415.9 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00666/0.1847, allocations: 3.471 MB / 419.4 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.1858, allocations: 354.7 kB / 419.7 MB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004064/0.1862, allocations: 36 kB / 419.8 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.1875, allocations: 95.88 kB / 419.8 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003252/0.1878, allocations: 120.6 kB / 420 MB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.1879, allocations: 55.91 kB / 420 MB, free: 4.625 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001933/0.1898, allocations: 1.153 MB / 421.2 MB, free: 3.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1898, allocations: 0 / 421.2 MB, free: 3.477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001945/0.1918, allocations: 0.5351 MB / 421.7 MB, free: 2.941 MB / 382.1 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%), (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.0004975/0.1923, allocations: 231.1 kB / 421.9 MB, free: 2.703 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00425/0.1965, allocations: 2.263 MB / 424.2 MB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1965, allocations: 4.125 kB / 424.2 MB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002694/0.1992, allocations: 1.447 MB / 425.7 MB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.201, allocations: 367.9 kB / 426 MB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00862/0.2097, allocations: 5.034 MB / 431 MB, free: 9.438 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001835/0.2115, allocations: 1.446 MB / 432.5 MB, free: 7.953 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001213/0.2127, allocations: 406.3 kB / 432.9 MB, free: 7.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004374/0.2132, allocations: 128.5 kB / 433 MB, free: 7.426 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2132, allocations: 0 / 433 MB, free: 7.426 MB / 398.1 MB Notification: Performance of Templates: time 0.04938/0.2625, allocations: 26.23 MB / 459.2 MB, free: 13.49 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.904231637716293]