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.001233/0.001233, allocations: 112.5 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001403/0.001403, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",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.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 51.91 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2196, allocations: 53.36 MB / 432.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.014/0.2336, allocations: 11.63 MB / 444 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007414/0.241, allocations: 3.955 MB / 448 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.2424, allocations: 79.5 kB / 448.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001989/0.2443, allocations: 0.87 MB / 448.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002534/0.2469, allocations: 0.9979 MB / 449.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.248, allocations: 0.5226 MB / 450.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003994/0.252, allocations: 3.238 MB / 453.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002315/0.2543, allocations: 1.477 MB / 455.2 MB, free: 32 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002367/0.2567, allocations: 1.483 MB / 456.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002873/0.2596, allocations: 1.857 MB / 458.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007027/0.2603, allocations: 384 kB / 458.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00138/0.2616, allocations: 0.6791 MB / 459.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001125/0.2628, allocations: 1.095 MB / 460.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001954/0.2647, allocations: 1.727 MB / 462.4 MB, free: 8.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005996/0.2707, allocations: 5.068 MB / 467.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2707, allocations: 0 / 467.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2707, allocations: 0 / 467.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.95e-05/0.2708, allocations: 0 / 467.4 MB, free: 3.707 MB / 366.1 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.007747/0.2786, allocations: 3.507 MB / 471 MB, free: 152 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.2786, allocations: 12.03 kB / 471 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.2803, allocations: 458.8 kB / 471.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003686/0.284, allocations: 1.787 MB / 473.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.2841, allocations: 193.2 kB / 473.4 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004153/0.2845, allocations: 255.9 kB / 473.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005813/0.2904, allocations: 3.247 MB / 476.9 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.087e-05/0.2904, allocations: 4 kB / 476.9 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/0.2907, allocations: 104 kB / 477 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.2908, allocations: 120.9 kB / 477.1 MB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005087/0.2959, allocations: 2.701 MB / 479.8 MB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01793/0.3138, allocations: 10.1 MB / 489.9 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.316, allocations: 1.256 MB / 491.2 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/0.3179, allocations: 0.9797 MB / 492.2 MB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002413/0.3181, allocations: 48.97 kB / 492.2 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.3182, allocations: 47.56 kB / 492.2 MB, free: 10.37 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.176e-06/0.3182, allocations: 0 / 492.2 MB, free: 10.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01815/0.3363, allocations: 7.077 MB / 499.3 MB, free: 3.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.279e-05/0.3364, allocations: 68.72 kB / 499.4 MB, free: 3.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003045/0.3394, allocations: 1.893 MB / 0.4895 GB, free: 1.297 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.3396, allocations: 45.7 kB / 0.4896 GB, free: 1.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.3407, allocations: 1.283 MB / 0.4908 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004878/0.3412, allocations: 483.9 kB / 0.4913 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005038/0.3417, allocations: 311.4 kB / 0.4916 GB, free: 15.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3418, allocations: 301.1 kB / 0.4919 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/0.3433, allocations: 0.812 MB / 0.4927 GB, free: 14.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/0.3452, allocations: 1.316 MB / 0.494 GB, free: 12.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003475/0.3487, allocations: 2.254 MB / 0.4962 GB, free: 10.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.3487, allocations: 4 kB / 0.4962 GB, free: 10.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005327/0.354, allocations: 2.724 MB / 0.4988 GB, free: 7.305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.3541, allocations: 12 kB / 0.4988 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/0.3541, allocations: 16 kB / 0.4988 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.3551, allocations: 421.1 kB / 0.4992 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.3567, allocations: 403.3 kB / 0.4996 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006815/0.3635, allocations: 5.584 MB / 0.5051 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001728/0.3652, allocations: 131.8 kB / 0.5052 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/0.3654, allocations: 75.97 kB / 0.5053 GB, free: 460 kB / 414.1 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.001474/0.3669, allocations: 0.7863 MB / 0.5061 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005117/0.3674, allocations: 210.7 kB / 0.5063 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004439/0.3718, allocations: 2.304 MB / 0.5085 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-05/0.3719, allocations: 16.09 kB / 0.5085 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.3719, allocations: 19.91 kB / 0.5085 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.3719, allocations: 3.984 kB / 0.5085 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009895/0.3818, allocations: 5.146 MB / 0.5136 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.3818, allocations: 7.938 kB / 0.5136 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.3829, allocations: 256.2 kB / 0.5138 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.3842, allocations: 454.1 kB / 0.5143 GB, free: 7.102 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.3843, allocations: 39.98 kB / 0.5143 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008117/0.3924, allocations: 7.02 MB / 0.5211 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.3924, allocations: 11.94 kB / 0.5212 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00624/0.3987, allocations: 3.5 MB / 0.5246 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.3999, allocations: 390.7 kB / 0.5249 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/0.4001, allocations: 36.11 kB / 0.525 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.4013, allocations: 103.9 kB / 0.5251 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.4015, allocations: 112.7 kB / 0.5252 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.521e-05/0.4016, allocations: 43.98 kB / 0.5252 GB, free: 11.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002089/0.4037, allocations: 1.303 MB / 0.5265 GB, free: 10.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4037, allocations: 0 / 0.5265 GB, free: 10.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001817/0.4055, allocations: 0.5468 MB / 0.527 GB, free: 9.586 MB / 446.1 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.0004496/0.406, allocations: 218.9 kB / 0.5272 GB, free: 9.359 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004147/0.4101, allocations: 2.27 MB / 0.5295 GB, free: 7.062 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/0.4101, allocations: 0 / 0.5295 GB, free: 7.062 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0026/0.4127, allocations: 1.448 MB / 0.5309 GB, free: 5.578 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.4149, allocations: 454.7 kB / 0.5313 GB, free: 5.141 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1893/0.6043, allocations: 5.247 MB / 0.5364 GB, free: 99.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002401/0.6067, allocations: 1.991 MB / 0.5384 GB, free: 99.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007248/0.6074, allocations: 144.8 kB / 0.5385 GB, free: 99.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6074, allocations: 0 / 0.5385 GB, free: 99.16 MB / 446.1 MB Notification: Performance of Templates: time 0.05777/0.6652, allocations: 70.86 MB / 0.6077 GB, free: 38.64 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 12.810631623957306]