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.001705/0.001705, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002084/0.002084, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 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.457/1.457, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 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 0.001555/0.001555, allocations: 51.92 kB / 371 MB, free: 9.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2658, allocations: 52.17 MB / 423.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01487/0.2807, allocations: 11.59 MB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008176/0.2889, allocations: 3.875 MB / 438.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.2907, allocations: 79.5 kB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002444/0.2932, allocations: 0.8657 MB / 439.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003175/0.2964, allocations: 1.002 MB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.2976, allocations: 0.5225 MB / 441.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004416/0.3021, allocations: 3.207 MB / 444.3 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002331/0.3044, allocations: 1.477 MB / 445.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002445/0.3068, allocations: 1.464 MB / 447.2 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.3097, allocations: 1.864 MB / 449.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007606/0.3105, allocations: 384 kB / 449.4 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/0.3121, allocations: 0.6986 MB / 450.1 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001261/0.3134, allocations: 1.087 MB / 451.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002494/0.3159, allocations: 1.715 MB / 452.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00688/0.3227, allocations: 5.072 MB / 458 MB, free: 11.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3227, allocations: 0 / 458 MB, free: 11.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3227, allocations: 0 / 458 MB, free: 11.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001236/0.3229, allocations: 0 / 458 MB, free: 11.57 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.008389/0.3313, allocations: 3.479 MB / 461.5 MB, free: 8.043 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.3313, allocations: 8.031 kB / 461.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001646/0.333, allocations: 430.7 kB / 461.9 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004/0.337, allocations: 1.772 MB / 463.7 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.3371, allocations: 193.2 kB / 463.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004666/0.3376, allocations: 247.9 kB / 464.1 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006262/0.3439, allocations: 3.251 MB / 467.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.205e-05/0.3439, allocations: 11.94 kB / 467.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002455/0.3442, allocations: 104 kB / 467.5 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.3443, allocations: 120.9 kB / 467.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005268/0.3496, allocations: 2.701 MB / 470.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01819/0.3678, allocations: 10.11 MB / 480.4 MB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/0.3702, allocations: 1.262 MB / 481.7 MB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001929/0.3721, allocations: 0.9766 MB / 482.7 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000253/0.3723, allocations: 56.95 kB / 482.7 MB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.3724, allocations: 43.56 kB / 482.8 MB, free: 2.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 4.158e-06/0.3724, allocations: 0 / 482.8 MB, free: 2.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01969/0.3921, allocations: 7.074 MB / 489.8 MB, free: 11.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.3922, allocations: 72.7 kB / 489.9 MB, free: 11.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003274/0.3954, allocations: 1.865 MB / 491.8 MB, free: 9.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001936/0.3956, allocations: 57.69 kB / 491.8 MB, free: 9.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.3968, allocations: 1.272 MB / 493.1 MB, free: 7.902 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005002/0.3973, allocations: 495.8 kB / 493.6 MB, free: 7.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005216/0.3978, allocations: 295.4 kB / 493.9 MB, free: 7.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3979, allocations: 301.1 kB / 494.2 MB, free: 6.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.3995, allocations: 0.8159 MB / 495 MB, free: 6.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/0.4015, allocations: 1.312 MB / 496.3 MB, free: 4.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/0.4052, allocations: 2.25 MB / 498.5 MB, free: 2.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/0.4052, allocations: 12 kB / 498.6 MB, free: 2 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005489/0.4107, allocations: 2.713 MB / 0.4895 GB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.4107, allocations: 14.5 kB / 0.4895 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-05/0.4108, allocations: 16 kB / 0.4895 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.4119, allocations: 426.4 kB / 0.49 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.4136, allocations: 403.3 kB / 0.4903 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007361/0.4209, allocations: 5.592 MB / 0.4958 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.4228, allocations: 123.8 kB / 0.4959 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/0.423, allocations: 68 kB / 0.496 GB, free: 8.41 MB / 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.001557/0.4246, allocations: 0.7979 MB / 0.4968 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005164/0.4251, allocations: 202.7 kB / 0.497 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004833/0.4299, allocations: 2.312 MB / 0.4992 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/0.4299, allocations: 12 kB / 0.4992 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.4299, allocations: 7.938 kB / 0.4992 GB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.43, allocations: 11.97 kB / 0.4992 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.4401, allocations: 5.15 MB / 0.5043 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.4401, allocations: 4.062 kB / 0.5043 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.4414, allocations: 255.6 kB / 0.5045 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.4427, allocations: 466 kB / 0.505 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.4428, allocations: 31.98 kB / 0.505 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008578/0.4514, allocations: 7.028 MB / 0.5119 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/0.4514, allocations: 11.88 kB / 0.5119 GB, free: 7.629 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006638/0.458, allocations: 3.501 MB / 0.5153 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.4592, allocations: 386.6 kB / 0.5157 GB, free: 3.668 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.4595, allocations: 28 kB / 0.5157 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.4607, allocations: 107.9 kB / 0.5158 GB, free: 3.535 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/0.461, allocations: 112.7 kB / 0.5159 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.4611, allocations: 43.98 kB / 0.5159 GB, free: 3.379 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002075/0.4632, allocations: 1.294 MB / 0.5172 GB, free: 2.094 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4632, allocations: 0 / 0.5172 GB, free: 2.094 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001924/0.4651, allocations: 0.5428 MB / 0.5177 GB, free: 1.551 MB / 430.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.0005124/0.4656, allocations: 226.8 kB / 0.5179 GB, free: 1.316 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004475/0.4701, allocations: 2.262 MB / 0.5202 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.4701, allocations: 4.438 kB / 0.5202 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002753/0.4728, allocations: 1.459 MB / 0.5216 GB, free: 13.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/0.4755, allocations: 444.2 kB / 0.522 GB, free: 13.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.4864, allocations: 5.204 MB / 0.5271 GB, free: 7.805 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/0.4885, allocations: 2.006 MB / 0.529 GB, free: 5.762 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001518/0.49, allocations: 427.7 kB / 0.5295 GB, free: 5.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000447/0.4904, allocations: 135.4 kB / 0.5296 GB, free: 5.207 MB / 446.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4904, allocations: 0 / 0.5296 GB, free: 5.207 MB / 446.1 MB Notification: Performance of Templates: time 0.2514/0.7419, allocations: 29.88 MB / 0.5588 GB, free: 92.35 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] 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.249013970606029]