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.002475/0.002475, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002837/0.002837, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 18.57 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.535/1.535, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 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.553e-06/1.553e-06, allocations: 0 / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.82e-05, allocations: 2.312 kB / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01681/0.01684, allocations: 11.27 MB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009161/0.026, allocations: 3.78 MB / 282.4 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.02814, allocations: 79.5 kB / 282.5 MB, free: 7.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002988/0.03113, allocations: 0.8272 MB / 283.3 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004552/0.03568, allocations: 1.017 MB / 284.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001968/0.03765, allocations: 0.5226 MB / 284.8 MB, free: 5.141 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005539/0.04318, allocations: 3.322 MB / 288.2 MB, free: 1.801 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003285/0.04647, allocations: 1.438 MB / 289.6 MB, free: 304 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.129/0.1754, allocations: 2.156 MB / 291.7 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003828/0.1793, allocations: 1.679 MB / 293.4 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001618/0.1809, allocations: 388.1 kB / 293.8 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002437/0.1833, allocations: 0.6026 MB / 294.4 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001416/0.1847, allocations: 1.131 MB / 295.5 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00216/0.1869, allocations: 1.196 MB / 296.7 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005413/0.1923, allocations: 5.145 MB / 301.9 MB, free: 16.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1923, allocations: 0.5938 kB / 301.9 MB, free: 16.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1923, allocations: 0 / 301.9 MB, free: 16.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001112/0.1924, allocations: 3.031 kB / 301.9 MB, free: 16.33 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.008932/0.2014, allocations: 3.902 MB / 305.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2014, allocations: 11.45 kB / 305.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.2032, allocations: 0.6212 MB / 306.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003569/0.2068, allocations: 1.727 MB / 308.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.2069, allocations: 186.7 kB / 308.3 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003501/0.2072, allocations: 255.1 kB / 308.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005008/0.2122, allocations: 3.123 MB / 311.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-05/0.2123, allocations: 6.062 kB / 311.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002205/0.2125, allocations: 110.2 kB / 311.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.2126, allocations: 113.8 kB / 311.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003582/0.2162, allocations: 2.019 MB / 313.9 MB, free: 9.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01866/0.2349, allocations: 12.1 MB / 326 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001998/0.2369, allocations: 0.8878 MB / 326.9 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/0.2385, allocations: 0.6696 MB / 327.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002656/0.2387, allocations: 56.97 kB / 327.7 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/0.2388, allocations: 50.39 kB / 327.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 3.145e-06/0.2388, allocations: 0 / 327.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.01271/0.2515, allocations: 4.3 MB / 332 MB, free: 6.738 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/0.2516, allocations: 72.64 kB / 332.1 MB, free: 6.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/0.2552, allocations: 2.008 MB / 334.1 MB, free: 4.629 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001326/0.2553, allocations: 49.7 kB / 334.1 MB, free: 4.574 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.2567, allocations: 1.457 MB / 335.6 MB, free: 3.105 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005695/0.2573, allocations: 0.5126 MB / 336.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006691/0.258, allocations: 363.5 kB / 336.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002393/0.2582, allocations: 480.8 kB / 336.9 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.2593, allocations: 451.7 kB / 337.4 MB, free: 1.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002008/0.2613, allocations: 1.204 MB / 338.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/0.2647, allocations: 1.8 MB / 340.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.513e-05/0.2648, allocations: 8 kB / 340.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005036/0.2698, allocations: 1.934 MB / 342.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.2698, allocations: 15.75 kB / 342.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.46e-05/0.2699, allocations: 16 kB / 342.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.271, allocations: 281.1 kB / 342.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/0.2726, allocations: 390.5 kB / 343 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006716/0.2794, allocations: 5.167 MB / 348.2 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.2814, allocations: 111.8 kB / 348.3 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002695/0.2816, allocations: 71.98 kB / 348.3 MB, free: 5.727 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.001521/0.2832, allocations: 0.654 MB / 349 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007518/0.2839, allocations: 238.7 kB / 349.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.2879, allocations: 1.471 MB / 350.7 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.966e-05/0.2879, allocations: 15.98 kB / 350.7 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.2879, allocations: 4 kB / 350.7 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.2879, allocations: 3.984 kB / 350.7 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.2992, allocations: 4.336 MB / 355.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.2992, allocations: 4 kB / 355.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.3004, allocations: 242.2 kB / 355.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.3018, allocations: 316.5 kB / 355.6 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.3019, allocations: 43.97 kB / 355.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008373/0.3103, allocations: 6.931 MB / 362.6 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-05/0.3103, allocations: 11.94 kB / 362.6 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005782/0.3161, allocations: 2.28 MB / 364.9 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/0.3176, allocations: 338.6 kB / 365.2 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006032/0.3182, allocations: 34.58 kB / 365.2 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/0.3198, allocations: 95.89 kB / 365.3 MB, free: 4.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004109/0.3202, allocations: 116.4 kB / 365.5 MB, free: 4.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/0.3204, allocations: 47.98 kB / 365.5 MB, free: 4.109 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003278/0.3237, allocations: 1.199 MB / 366.7 MB, free: 2.918 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3237, allocations: 0 / 366.7 MB, free: 2.918 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003652/0.3273, allocations: 0.5389 MB / 367.2 MB, free: 2.379 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.0007196/0.328, allocations: 228.5 kB / 367.5 MB, free: 2.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00452/0.3325, allocations: 1.806 MB / 369.3 MB, free: 388 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/0.3326, allocations: 192 / 369.3 MB, free: 388 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002783/0.3353, allocations: 1.326 MB / 370.6 MB, free: 15.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003203/0.3385, allocations: 388.2 kB / 371 MB, free: 14.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.3516, allocations: 4.627 MB / 375.6 MB, free: 9.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00299/0.3546, allocations: 1.364 MB / 377 MB, free: 8.516 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002051/0.3567, allocations: 338.2 kB / 377.3 MB, free: 8.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008136/0.3575, allocations: 124.5 kB / 377.4 MB, free: 8.059 MB / 330.7 MB Notification: Performance of SimCode: time 2.505e-06/0.3575, allocations: 0 / 377.4 MB, free: 8.059 MB / 330.7 MB Notification: Performance of Templates: time 0.05924/0.4167, allocations: 26.38 MB / 403.8 MB, free: 14.07 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] 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: 6.020743991015479]