Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9421/0.9421, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.1.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.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.249e-05/1.425e-05, allocations: 2.312 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008877/0.008891, allocations: 11.38 MB / 284.4 MB, free: 6.082 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004272/0.01316, allocations: 3.877 MB / 288.3 MB, free: 2.191 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005859/0.01375, allocations: 79.5 kB / 288.3 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.01495, allocations: 0.8273 MB / 289.2 MB, free: 1.277 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001329/0.01628, allocations: 1.028 MB / 290.2 MB, free: 248 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1124/0.1287, allocations: 0.5294 MB / 290.7 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003569/0.1322, allocations: 3.333 MB / 294.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.1338, allocations: 1.424 MB / 295.5 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002791/0.1366, allocations: 2.416 MB / 297.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00231/0.1389, allocations: 1.599 MB / 299.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007711/0.1397, allocations: 377.1 kB / 299.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009824/0.1407, allocations: 0.5947 MB / 300.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006076/0.1413, allocations: 1.078 MB / 301.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.1424, allocations: 1.175 MB / 302.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002173/0.1446, allocations: 2.78 MB / 305.5 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1446, allocations: 0.625 kB / 305.5 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1446, allocations: 0 / 305.5 MB, free: 12.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.827e-05/0.1447, allocations: 2.875 kB / 305.5 MB, free: 12.35 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.003204/0.1479, allocations: 3.6 MB / 309.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1479, allocations: 6.156 kB / 309.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009662/0.1489, allocations: 0.6524 MB / 309.8 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.1503, allocations: 1.711 MB / 311.5 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.66e-05/0.1504, allocations: 189.4 kB / 311.6 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.1506, allocations: 261.3 kB / 311.9 MB, free: 8.594 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.1526, allocations: 2.027 MB / 313.9 MB, free: 6.461 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.439e-05/0.1527, allocations: 19.88 kB / 313.9 MB, free: 6.441 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.1528, allocations: 99.91 kB / 314 MB, free: 6.348 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-05/0.1529, allocations: 116.2 kB / 314.2 MB, free: 6.234 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.1543, allocations: 0.9145 MB / 315.1 MB, free: 5.309 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006901/0.1612, allocations: 8.377 MB / 323.5 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009352/0.1621, allocations: 0.6968 MB / 324.1 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006838/0.1628, allocations: 0.5087 MB / 324.7 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001562/0.163, allocations: 56.97 kB / 324.7 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.163, allocations: 52.34 kB / 324.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 2.485e-06/0.163, allocations: 0 / 324.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.005329/0.1683, allocations: 3.576 MB / 328.3 MB, free: 7.977 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.1684, allocations: 64.72 kB / 328.4 MB, free: 7.898 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/0.1697, allocations: 1.486 MB / 329.9 MB, free: 6.395 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.149e-05/0.1698, allocations: 45.7 kB / 329.9 MB, free: 6.344 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006811/0.1704, allocations: 1.375 MB / 331.3 MB, free: 4.957 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/0.1707, allocations: 500 kB / 331.8 MB, free: 4.477 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.171, allocations: 305.1 kB / 332.1 MB, free: 4.168 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.574e-05/0.1711, allocations: 478.3 kB / 332.6 MB, free: 3.699 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004143/0.1715, allocations: 255.8 kB / 332.8 MB, free: 3.449 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007084/0.1722, allocations: 0.9468 MB / 333.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.1735, allocations: 1.338 MB / 335.1 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.1735, allocations: 4 kB / 335.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001903/0.1754, allocations: 1.536 MB / 336.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.1754, allocations: 12 kB / 336.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.1754, allocations: 16 kB / 336.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005606/0.176, allocations: 260.5 kB / 336.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007387/0.1767, allocations: 380.6 kB / 337.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002982/0.1797, allocations: 4.939 MB / 342.2 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005811/0.1803, allocations: 107.9 kB / 342.3 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.411e-05/0.1804, allocations: 75.97 kB / 342.4 MB, free: 9.242 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.0003796/0.1807, allocations: 256.5 kB / 342.7 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.181, allocations: 238.7 kB / 342.9 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.1825, allocations: 1.176 MB / 344.1 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/0.1825, allocations: 16 kB / 344.1 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1826, allocations: 4 kB / 344.1 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.1826, allocations: 7.969 kB / 344.1 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004023/0.1866, allocations: 3.358 MB / 347.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.1866, allocations: 8.547 kB / 347.5 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000533/0.1871, allocations: 233.5 kB / 347.7 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006271/0.1878, allocations: 294.7 kB / 348 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.52e-05/0.1878, allocations: 31.98 kB / 348 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00365/0.1915, allocations: 6.653 MB / 354.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.1915, allocations: 7.469 kB / 354.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.1936, allocations: 1.763 MB / 356.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004284/0.194, allocations: 337.7 kB / 356.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.1941, allocations: 31.98 kB / 356.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004719/0.1946, allocations: 79.98 kB / 356.9 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.1948, allocations: 120.1 kB / 357 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.732e-05/0.1948, allocations: 43.98 kB / 357 MB, free: 10.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008262/0.1957, allocations: 0.8724 MB / 357.9 MB, free: 9.277 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1957, allocations: 0 / 357.9 MB, free: 9.277 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001102/0.1968, allocations: 0.5312 MB / 358.4 MB, free: 8.746 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.0003168/0.1971, allocations: 229 kB / 358.7 MB, free: 8.531 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.1987, allocations: 1.426 MB / 360.1 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1987, allocations: 0 / 360.1 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009869/0.1997, allocations: 1.111 MB / 361.2 MB, free: 5.992 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.2007, allocations: 388.6 kB / 361.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004988/0.2057, allocations: 4.424 MB / 366 MB, free: 1.086 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005164/0.2062, allocations: 0.6535 MB / 366.7 MB, free: 416 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005855/0.2068, allocations: 338.2 kB / 367 MB, free: 72 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.2071, allocations: 120.5 kB / 367.1 MB, free: 15.95 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2071, allocations: 4 kB / 367.1 MB, free: 15.94 MB / 330.7 MB Notification: Performance of Templates: time 0.0312/0.2383, allocations: 26.58 MB / 393.7 MB, free: 5.777 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.7622577869333327]