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.0009527/0.0009527, allocations: 84.25 kB / 22.21 MB, free: 2.281 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.0009991/0.0009991, allocations: 166.7 kB / 25.61 MB, free: 8.434 MB / 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.9721/0.9721, allocations: 177 MB / 205.9 MB, free: 4.449 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.092e-06/1.092e-06, allocations: 0 / 274.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.398e-05/1.507e-05, allocations: 2.312 kB / 274.1 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008921/0.008936, allocations: 11.1 MB / 285.2 MB, free: 9.117 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005144/0.01408, allocations: 3.854 MB / 289.1 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007941/0.01487, allocations: 71.56 kB / 289.1 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.01614, allocations: 0.8195 MB / 290 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001513/0.01765, allocations: 1.044 MB / 291 MB, free: 3.316 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006526/0.0183, allocations: 0.5341 MB / 291.5 MB, free: 2.781 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002223/0.02053, allocations: 3.338 MB / 294.9 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.02193, allocations: 1.43 MB / 296.3 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00207/0.024, allocations: 2.417 MB / 298.7 MB, free: 11.51 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.02566, allocations: 1.605 MB / 300.3 MB, free: 9.898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005954/0.02625, allocations: 376 kB / 300.7 MB, free: 9.531 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.02726, allocations: 0.5971 MB / 301.3 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009696/0.02823, allocations: 1.075 MB / 302.4 MB, free: 7.855 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.02929, allocations: 1.177 MB / 303.6 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002249/0.03154, allocations: 2.78 MB / 306.3 MB, free: 3.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.03154, allocations: 7.938 kB / 306.3 MB, free: 3.879 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.03154, allocations: 0 / 306.3 MB, free: 3.879 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.339e-05/0.03158, allocations: 4 kB / 306.3 MB, free: 3.875 MB / 282.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.003656/0.03523, allocations: 3.518 MB / 309.9 MB, free: 304 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.03526, allocations: 8.031 kB / 309.9 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.03631, allocations: 0.6511 MB / 310.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.03793, allocations: 1.633 MB / 312.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.03804, allocations: 185.4 kB / 312.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.03827, allocations: 252.3 kB / 312.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002064/0.04033, allocations: 1.884 MB / 314.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.823e-05/0.04038, allocations: 3.953 kB / 314.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.04053, allocations: 108 kB / 314.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.545e-05/0.04063, allocations: 112.9 kB / 314.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.04175, allocations: 0.7283 MB / 315.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007621/0.04938, allocations: 8.285 MB / 323.7 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007345/0.05011, allocations: 0.6239 MB / 324.3 MB, free: 1.293 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.05067, allocations: 474.1 kB / 324.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/0.0508, allocations: 52.97 kB / 324.8 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.05083, allocations: 50.33 kB / 324.9 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of pre-optimization done (n=115): time 2.355e-06/0.05083, allocations: 0 / 324.9 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.004389/0.05522, allocations: 2.887 MB / 327.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.05525, allocations: 68.66 kB / 327.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.05635, allocations: 1.443 MB / 329.3 MB, free: 12.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.355e-05/0.05641, allocations: 45.7 kB / 329.3 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006677/0.05708, allocations: 1.391 MB / 330.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000259/0.05734, allocations: 499.8 kB / 331.2 MB, free: 10.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003189/0.05766, allocations: 309 kB / 331.5 MB, free: 9.996 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.05776, allocations: 480.8 kB / 332 MB, free: 9.523 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004062/0.05816, allocations: 191.8 kB / 332.2 MB, free: 9.336 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006228/0.05879, allocations: 0.9038 MB / 333.1 MB, free: 8.137 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009542/0.05974, allocations: 1.241 MB / 334.3 MB, free: 6.602 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.05975, allocations: 8 kB / 334.3 MB, free: 6.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001587/0.06133, allocations: 1.401 MB / 335.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.06135, allocations: 12 kB / 335.7 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.06137, allocations: 16 kB / 335.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005624/0.06193, allocations: 248.1 kB / 336 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006933/0.06262, allocations: 347.4 kB / 336.3 MB, free: 4.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.06525, allocations: 4.775 MB / 341.1 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005349/0.06578, allocations: 75.89 kB / 341.2 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.579e-05/0.06587, allocations: 60.14 kB / 341.2 MB, free: 15.43 MB / 330.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.0003671/0.06623, allocations: 264.1 kB / 341.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002616/0.06649, allocations: 230.8 kB / 341.7 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.06779, allocations: 1.07 MB / 342.8 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.0678, allocations: 19.94 kB / 342.8 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.06781, allocations: 4 kB / 342.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.06782, allocations: 3.984 kB / 342.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003556/0.07137, allocations: 3.254 MB / 346.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.07138, allocations: 8.062 kB / 346.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004777/0.07186, allocations: 207.7 kB / 346.3 MB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005229/0.07238, allocations: 285.5 kB / 346.6 MB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.791e-05/0.07245, allocations: 35.98 kB / 346.6 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003311/0.07576, allocations: 6.483 MB / 353.1 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.07576, allocations: 7.938 kB / 353.1 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.07746, allocations: 1.603 MB / 354.7 MB, free: 1.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/0.07784, allocations: 318.6 kB / 355 MB, free: 1.004 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.07798, allocations: 31.98 kB / 355 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004467/0.07843, allocations: 59.97 kB / 355.1 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.07856, allocations: 112.7 kB / 355.2 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-05/0.07862, allocations: 35.98 kB / 355.2 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.1479/0.2265, allocations: 0.7904 MB / 356 MB, free: 75.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2265, allocations: 1 kB / 356 MB, free: 75.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001903/0.2284, allocations: 0.5266 MB / 356.6 MB, free: 75.55 MB / 330.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.0003441/0.2287, allocations: 217.5 kB / 356.8 MB, free: 75.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.2305, allocations: 1.318 MB / 358.1 MB, free: 75.08 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.2305, allocations: 1.062 kB / 358.1 MB, free: 75.08 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009969/0.2315, allocations: 1.061 MB / 359.1 MB, free: 74.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.2328, allocations: 383.7 kB / 359.5 MB, free: 74.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005286/0.2381, allocations: 4.391 MB / 363.9 MB, free: 72.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.2385, allocations: 0.6512 MB / 364.6 MB, free: 72.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005355/0.2391, allocations: 232 kB / 364.8 MB, free: 72.44 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000619/0.2397, allocations: 463.8 kB / 365.2 MB, free: 72.38 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2397, allocations: 2.031 kB / 365.2 MB, free: 72.38 MB / 330.7 MB Notification: Performance of Templates: time 0.02882/0.2685, allocations: 27.63 MB / 392.9 MB, free: 51.41 MB / 330.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.9420337923802435]