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.0009272/0.0009272, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0008956/0.0008956, allocations: 164.4 kB / 24.82 MB, free: 9.266 MB / 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.9563/0.9563, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.002e-06/1.002e-06, allocations: 0 / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.484e-06/8.486e-06, allocations: 2.312 kB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009919/0.009927, allocations: 11.06 MB / 284.5 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005338/0.01527, allocations: 3.858 MB / 288.3 MB, free: 2.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007433/0.01601, allocations: 75.5 kB / 288.4 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001299/0.01731, allocations: 0.835 MB / 289.2 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.01885, allocations: 1.032 MB / 290.3 MB, free: 320 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1028/0.1217, allocations: 0.5245 MB / 290.8 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00352/0.1252, allocations: 3.334 MB / 294.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/0.1267, allocations: 1.427 MB / 295.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002473/0.1292, allocations: 2.416 MB / 298 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.1306, allocations: 1.61 MB / 299.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000445/0.1311, allocations: 376.2 kB / 300 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007889/0.1319, allocations: 0.597 MB / 300.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005708/0.1324, allocations: 1.071 MB / 301.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.1335, allocations: 1.171 MB / 302.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002059/0.1355, allocations: 2.793 MB / 305.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1355, allocations: 0 / 305.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1355, allocations: 2.469 kB / 305.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.98e-05/0.1356, allocations: 0 / 305.6 MB, free: 12.55 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.003081/0.1387, allocations: 3.509 MB / 309.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1387, allocations: 10.31 kB / 309.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009356/0.1396, allocations: 0.6593 MB / 309.8 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.141, allocations: 1.62 MB / 311.4 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/0.141, allocations: 187.5 kB / 311.6 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/0.1412, allocations: 255 kB / 311.8 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.1428, allocations: 1.87 MB / 313.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.36e-05/0.1429, allocations: 19.55 kB / 313.7 MB, free: 6.977 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.143, allocations: 100 kB / 313.8 MB, free: 6.879 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.758e-05/0.1431, allocations: 112.9 kB / 313.9 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009326/0.144, allocations: 0.7318 MB / 314.6 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006609/0.1506, allocations: 8.278 MB / 322.9 MB, free: 14.01 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007304/0.1513, allocations: 0.6442 MB / 323.6 MB, free: 13.4 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009068/0.1523, allocations: 461.7 kB / 324 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001695/0.1524, allocations: 50.97 kB / 324.1 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.1525, allocations: 54.39 kB / 324.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 3.727e-06/0.1525, allocations: 0 / 324.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.005343/0.1578, allocations: 2.883 MB / 327 MB, free: 10.01 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.1578, allocations: 68.72 kB / 327.1 MB, free: 9.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.1592, allocations: 1.44 MB / 328.5 MB, free: 8.695 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.029e-05/0.1592, allocations: 45.7 kB / 328.6 MB, free: 8.645 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006489/0.1599, allocations: 1.389 MB / 329.9 MB, free: 7.312 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.1601, allocations: 499.9 kB / 330.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.1604, allocations: 310.9 kB / 330.7 MB, free: 6.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1606, allocations: 476.8 kB / 331.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.1608, allocations: 191.8 kB / 331.4 MB, free: 5.914 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005624/0.1614, allocations: 0.9002 MB / 332.3 MB, free: 4.766 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009462/0.1623, allocations: 1.242 MB / 333.5 MB, free: 3.332 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.1623, allocations: 8 kB / 333.5 MB, free: 3.324 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001669/0.164, allocations: 1.392 MB / 334.9 MB, free: 2.023 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.164, allocations: 12 kB / 334.9 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.164, allocations: 16 kB / 335 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005483/0.1646, allocations: 256.2 kB / 335.2 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007105/0.1653, allocations: 343.5 kB / 335.5 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/0.1683, allocations: 4.794 MB / 340.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009379/0.1692, allocations: 71.12 kB / 340.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-05/0.1693, allocations: 59.98 kB / 340.5 MB, free: 12.37 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.0005578/0.1699, allocations: 256.7 kB / 340.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00032/0.1702, allocations: 234.8 kB / 340.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.1716, allocations: 1.069 MB / 342 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.082e-05/0.1717, allocations: 15.94 kB / 342 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1717, allocations: 4 kB / 342 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.1717, allocations: 3.984 kB / 342 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003955/0.1756, allocations: 3.265 MB / 345.3 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.1756, allocations: 4 kB / 345.3 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004923/0.1761, allocations: 210.1 kB / 345.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005589/0.1767, allocations: 283.8 kB / 345.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.029e-05/0.1767, allocations: 35.97 kB / 345.8 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003314/0.1801, allocations: 6.491 MB / 352.3 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1801, allocations: 7.656 kB / 352.3 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.1821, allocations: 1.608 MB / 353.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005349/0.1826, allocations: 306.5 kB / 354.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.1828, allocations: 35.98 kB / 354.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004834/0.1832, allocations: 55.97 kB / 354.3 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.1834, allocations: 112.5 kB / 354.4 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-05/0.1835, allocations: 35.98 kB / 354.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007373/0.1842, allocations: 0.7968 MB / 355.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1842, allocations: 0 / 355.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001426/0.1856, allocations: 0.5312 MB / 355.8 MB, free: 13.07 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.0003398/0.186, allocations: 221.8 kB / 356 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.1874, allocations: 1.314 MB / 357.3 MB, free: 11.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1874, allocations: 12.06 kB / 357.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009208/0.1884, allocations: 1.046 MB / 358.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.1894, allocations: 396 kB / 358.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005397/0.1948, allocations: 4.388 MB / 363.2 MB, free: 5.676 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.1954, allocations: 0.6493 MB / 363.8 MB, free: 5.004 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007165/0.1961, allocations: 234.4 kB / 364 MB, free: 4.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/0.1967, allocations: 462 kB / 364.5 MB, free: 4.316 MB / 314.7 MB Notification: Performance of SimCode: time 1.443e-06/0.1967, allocations: 0 / 364.5 MB, free: 4.316 MB / 314.7 MB Notification: Performance of Templates: time 0.03786/0.2346, allocations: 27.08 MB / 391.6 MB, free: 9.703 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.5084690251387656]