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.001891/0.001891, allocations: 88.31 kB / 20.96 MB, free: 3.48 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.002141/0.002141, allocations: 161.7 kB / 24.26 MB, free: 180 kB / 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.483/1.483, allocations: 177.2 MB / 204.6 MB, free: 5.582 MB / 186.7 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 1.763e-06/1.763e-06, allocations: 0 / 272.3 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.796e-05/2.973e-05, allocations: 2.312 kB / 272.3 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0149/0.01493, allocations: 10.13 MB / 282.5 MB, free: 7.617 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009128/0.02406, allocations: 3.725 MB / 286.2 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002385/0.02644, allocations: 79.5 kB / 286.3 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002566/0.02901, allocations: 0.835 MB / 287.1 MB, free: 2.961 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003959/0.03297, allocations: 1.028 MB / 288.1 MB, free: 1.926 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.03442, allocations: 0.5225 MB / 288.7 MB, free: 1.402 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.146/0.1805, allocations: 3.333 MB / 292 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002676/0.1831, allocations: 1.423 MB / 293.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004297/0.1874, allocations: 2.155 MB / 295.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002874/0.1903, allocations: 1.561 MB / 297.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000691/0.191, allocations: 385.8 kB / 297.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.1923, allocations: 0.6055 MB / 298.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.1934, allocations: 1.114 MB / 299.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001548/0.1949, allocations: 1.191 MB / 300.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005105/0.2, allocations: 5.126 MB / 305.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2, allocations: 0 / 305.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2, allocations: 2.5 kB / 305.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001407/0.2002, allocations: 0 / 305.5 MB, free: 11.96 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.006906/0.2071, allocations: 3.466 MB / 309 MB, free: 9.621 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2071, allocations: 9.594 kB / 309 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001818/0.2089, allocations: 0.6574 MB / 309.7 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.2117, allocations: 1.852 MB / 311.5 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.2119, allocations: 194.2 kB / 311.7 MB, free: 8.094 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003545/0.2122, allocations: 256.4 kB / 312 MB, free: 8.008 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004637/0.2169, allocations: 3.373 MB / 315.3 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.869e-05/0.2169, allocations: 7.891 kB / 315.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002277/0.2171, allocations: 104.9 kB / 315.5 MB, free: 4.586 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/0.2173, allocations: 116.9 kB / 315.6 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003848/0.2211, allocations: 2.7 MB / 318.3 MB, free: 1.762 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01692/0.238, allocations: 9.083 MB / 327.3 MB, free: 8.617 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002427/0.2405, allocations: 1.241 MB / 328.6 MB, free: 7.391 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/0.2425, allocations: 0.9767 MB / 329.6 MB, free: 6.414 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002493/0.2427, allocations: 61.59 kB / 329.6 MB, free: 6.355 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/0.2428, allocations: 47.56 kB / 329.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 3.096e-06/0.2428, allocations: 0 / 329.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.01989/0.2627, allocations: 7.102 MB / 336.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.2627, allocations: 68.66 kB / 336.8 MB, free: 15.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/0.2659, allocations: 1.723 MB / 338.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.266, allocations: 49.7 kB / 338.6 MB, free: 13.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.2673, allocations: 1.288 MB / 339.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/0.2679, allocations: 483.4 kB / 340.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005941/0.2685, allocations: 298.8 kB / 340.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.2686, allocations: 305.1 kB / 341 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/0.2702, allocations: 0.8159 MB / 341.8 MB, free: 10.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002061/0.2723, allocations: 1.312 MB / 343.1 MB, free: 8.652 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004274/0.2766, allocations: 2.249 MB / 345.3 MB, free: 6.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.2766, allocations: 4 kB / 345.3 MB, free: 6.246 MB / 298.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005816/0.2824, allocations: 2.785 MB / 348.1 MB, free: 3.555 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.2824, allocations: 16.27 kB / 348.1 MB, free: 3.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.832e-05/0.2825, allocations: 20 kB / 348.2 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.2838, allocations: 462.1 kB / 348.6 MB, free: 3.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/0.2854, allocations: 404.3 kB / 349 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007843/0.2932, allocations: 5.502 MB / 354.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.2952, allocations: 135.9 kB / 354.6 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/0.2954, allocations: 68 kB / 354.7 MB, free: 12.83 MB / 314.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.001624/0.297, allocations: 0.7953 MB / 355.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006274/0.2976, allocations: 238.8 kB / 355.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005129/0.3027, allocations: 2.29 MB / 358 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.243e-05/0.3028, allocations: 19.98 kB / 358.1 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.3028, allocations: 4 kB / 358.1 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.3028, allocations: 5.766 kB / 358.1 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.3135, allocations: 4.541 MB / 362.6 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.3135, allocations: 4 kB / 362.6 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.3147, allocations: 253.5 kB / 362.9 MB, free: 4.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.3162, allocations: 0.4888 MB / 363.3 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.3163, allocations: 31.98 kB / 363.4 MB, free: 4.156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009562/0.3259, allocations: 6.925 MB / 370.3 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/0.3259, allocations: 11.94 kB / 370.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00735/0.3332, allocations: 3.517 MB / 373.8 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/0.3344, allocations: 362.7 kB / 374.2 MB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/0.3347, allocations: 40.11 kB / 374.2 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.3358, allocations: 95.89 kB / 374.3 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/0.3362, allocations: 120.2 kB / 374.4 MB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.3363, allocations: 40 kB / 374.5 MB, free: 8.738 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002032/0.3383, allocations: 1.165 MB / 375.6 MB, free: 7.578 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3383, allocations: 0 / 375.6 MB, free: 7.578 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002149/0.3404, allocations: 0.5389 MB / 376.2 MB, free: 7.039 MB / 330.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.0005457/0.341, allocations: 223.8 kB / 376.4 MB, free: 6.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004574/0.3456, allocations: 2.266 MB / 378.7 MB, free: 4.594 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3456, allocations: 0 / 378.7 MB, free: 4.594 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002827/0.3484, allocations: 1.447 MB / 380.1 MB, free: 3.137 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.3506, allocations: 394.1 kB / 380.5 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009981/0.3606, allocations: 5.128 MB / 385.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001981/0.3626, allocations: 1.447 MB / 387.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001457/0.364, allocations: 414.2 kB / 387.5 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004829/0.3645, allocations: 128.5 kB / 387.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3645, allocations: 0 / 387.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of Templates: time 0.05625/0.4208, allocations: 26.41 MB / 414 MB, free: 1.523 MB / 362.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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/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: 5.771743210032582]