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.000996/0.000996, allocations: 71.77 kB / 21.69 MB, free: 2.852 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.001016/0.001016, allocations: 166.7 kB / 24.99 MB, free: 8.789 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 1.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.943e-06/1.943e-06, allocations: 0 / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.768e-05/2.963e-05, allocations: 2.312 kB / 273.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0146/0.01463, allocations: 11.34 MB / 284.4 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008517/0.02314, allocations: 3.866 MB / 288.3 MB, free: 2.562 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001505/0.02465, allocations: 79.5 kB / 288.3 MB, free: 2.484 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.02622, allocations: 0.8312 MB / 289.2 MB, free: 1.645 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002141/0.02836, allocations: 1.028 MB / 290.2 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007907/0.02915, allocations: 0.5225 MB / 290.7 MB, free: 88 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1338/0.1629, allocations: 3.33 MB / 294.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002364/0.1653, allocations: 1.423 MB / 295.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003511/0.1688, allocations: 2.173 MB / 297.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002672/0.1715, allocations: 1.687 MB / 299.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007714/0.1723, allocations: 387.9 kB / 299.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.1734, allocations: 0.6116 MB / 300.3 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007905/0.1742, allocations: 1.125 MB / 301.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00139/0.1756, allocations: 1.204 MB / 302.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002596/0.1782, allocations: 2.836 MB / 305.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1782, allocations: 4.094 kB / 305.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1782, allocations: 0 / 305.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.09e-05/0.1782, allocations: 0 / 305.5 MB, free: 12.48 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.003745/0.182, allocations: 3.66 MB / 309.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.182, allocations: 10.25 kB / 309.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001152/0.1832, allocations: 0.6514 MB / 309.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001867/0.185, allocations: 1.701 MB / 311.5 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.64e-05/0.1851, allocations: 187 kB / 311.7 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.1854, allocations: 258.4 kB / 312 MB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002418/0.1878, allocations: 2.032 MB / 314 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.52e-05/0.1878, allocations: 15.92 kB / 314 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.188, allocations: 104.4 kB / 314.1 MB, free: 6.668 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-05/0.1881, allocations: 112.9 kB / 314.2 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.1897, allocations: 0.9225 MB / 315.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007992/0.1977, allocations: 8.525 MB / 323.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.1987, allocations: 0.6615 MB / 324.3 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007685/0.1995, allocations: 0.5002 MB / 324.8 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001781/0.1997, allocations: 58.97 kB / 324.9 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.1997, allocations: 49.95 kB / 324.9 MB, free: 11.76 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 4.047e-06/0.1997, allocations: 0 / 324.9 MB, free: 11.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.006267/0.206, allocations: 3.617 MB / 328.6 MB, free: 8.152 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.206, allocations: 70.62 kB / 328.6 MB, free: 8.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.2075, allocations: 1.49 MB / 330.1 MB, free: 6.562 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.896e-05/0.2076, allocations: 49.7 kB / 330.2 MB, free: 6.508 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000653/0.2082, allocations: 1.371 MB / 331.5 MB, free: 5.125 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002814/0.2085, allocations: 0.4902 MB / 332 MB, free: 4.641 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003162/0.2088, allocations: 304.3 kB / 332.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.24e-05/0.2089, allocations: 476.8 kB / 332.8 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005114/0.2094, allocations: 251.8 kB / 333 MB, free: 3.621 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007578/0.2102, allocations: 0.9544 MB / 334 MB, free: 2.379 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.2115, allocations: 1.345 MB / 335.3 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/0.2115, allocations: 8 kB / 335.3 MB, free: 0.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.002886/0.2144, allocations: 1.539 MB / 336.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.2144, allocations: 12 kB / 336.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-05/0.2145, allocations: 12.28 kB / 336.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000767/0.2152, allocations: 257.8 kB / 337.2 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.2163, allocations: 397 kB / 337.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003948/0.2203, allocations: 4.935 MB / 342.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.2214, allocations: 115.8 kB / 342.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.2215, allocations: 72 kB / 342.7 MB, free: 9.375 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.0006924/0.2222, allocations: 268.1 kB / 342.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003832/0.2226, allocations: 234.7 kB / 343.1 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.2249, allocations: 1.183 MB / 344.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.184e-05/0.2249, allocations: 19.98 kB / 344.4 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.2249, allocations: 4 kB / 344.4 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.2249, allocations: 3.984 kB / 344.4 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005838/0.2308, allocations: 3.426 MB / 347.8 MB, free: 4.184 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.2308, allocations: 4 kB / 347.8 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000775/0.2316, allocations: 246.1 kB / 348 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008981/0.2325, allocations: 310.2 kB / 348.3 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.083e-05/0.2326, allocations: 35.11 kB / 348.4 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00478/0.2373, allocations: 6.725 MB / 355.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.2373, allocations: 11.31 kB / 355.1 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/0.2405, allocations: 1.774 MB / 356.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007985/0.2413, allocations: 342.6 kB / 357.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.2415, allocations: 35.98 kB / 357.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007487/0.2423, allocations: 86.95 kB / 357.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.2425, allocations: 120.1 kB / 357.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.2426, allocations: 43.98 kB / 357.5 MB, free: 10.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001358/0.244, allocations: 0.8841 MB / 358.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.244, allocations: 4 kB / 358.4 MB, free: 9.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001932/0.2459, allocations: 0.5468 MB / 358.9 MB, free: 8.633 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%), (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.0004263/0.2463, allocations: 214.9 kB / 359.1 MB, free: 8.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.2489, allocations: 1.433 MB / 360.6 MB, free: 7.016 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.2489, allocations: 0 / 360.6 MB, free: 7.016 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.2504, allocations: 1.141 MB / 361.7 MB, free: 5.855 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/0.252, allocations: 391 kB / 362.1 MB, free: 5.484 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007992/0.26, allocations: 4.455 MB / 366.5 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007064/0.2607, allocations: 0.6535 MB / 367.2 MB, free: 248 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001012/0.2618, allocations: 342.2 kB / 367.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003688/0.2621, allocations: 124.5 kB / 367.7 MB, free: 15.78 MB / 330.7 MB Notification: Performance of SimCode: time 2.064e-06/0.2621, allocations: 4 kB / 367.7 MB, free: 15.78 MB / 330.7 MB Notification: Performance of Templates: time 0.03754/0.2997, allocations: 26.46 MB / 394.1 MB, free: 5.719 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.804238196928054]