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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=60000,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=60000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 108.3 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 47.36 kB / 299.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08618, allocations: 49.46 MB / 349.4 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01169/0.0979, allocations: 11.38 MB / 360.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006005/0.1039, allocations: 3.838 MB / 364.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.1051, allocations: 59.75 kB / 364.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001757/0.1069, allocations: 0.7267 MB / 365.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002213/0.1092, allocations: 0.8508 MB / 366.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009907/0.1102, allocations: 455.5 kB / 366.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1703/0.2805, allocations: 3.56 MB / 370.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003061/0.2836, allocations: 2.165 MB / 372.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.2857, allocations: 1.243 MB / 373.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002035/0.2878, allocations: 1.741 MB / 375.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004636/0.2882, allocations: 234.8 kB / 375.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001109/0.2894, allocations: 0.4899 MB / 376.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009026/0.2903, allocations: 0.9129 MB / 377 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001644/0.2919, allocations: 1.564 MB / 378.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004236/0.2962, allocations: 4.879 MB / 383.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2962, allocations: 2.906 kB / 383.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.2962, allocations: 0 / 383.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.429e-05/0.2963, allocations: 0 / 383.5 MB, free: 8.551 MB / 302.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.006514/0.3028, allocations: 3.483 MB / 387 MB, free: 6.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3029, allocations: 9.562 kB / 387 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.3042, allocations: 410.2 kB / 387.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002618/0.3068, allocations: 1.784 MB / 389.2 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.307, allocations: 193.9 kB / 389.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003508/0.3074, allocations: 262.2 kB / 389.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004962/0.3123, allocations: 3.249 MB / 392.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.05e-05/0.3124, allocations: 2.75 kB / 392.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002369/0.3126, allocations: 101.9 kB / 393 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.3128, allocations: 117.1 kB / 393.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004011/0.3168, allocations: 2.711 MB / 395.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01614/0.333, allocations: 10.37 MB / 406.2 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002423/0.3354, allocations: 1.774 MB / 407.9 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/0.3372, allocations: 1.057 MB / 409 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/0.3376, allocations: 205.2 kB / 409.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/0.3376, allocations: 47.56 kB / 409.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.476e-06/0.3376, allocations: 0 / 409.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01742/0.3551, allocations: 7.414 MB / 416.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.3551, allocations: 71.33 kB / 416.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/0.358, allocations: 1.871 MB / 418.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.972e-05/0.3581, allocations: 45.7 kB / 418.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008761/0.359, allocations: 1.247 MB / 419.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003745/0.3594, allocations: 469.9 kB / 420.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004926/0.3599, allocations: 295.3 kB / 420.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.36, allocations: 305.1 kB / 420.9 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.3614, allocations: 0.8197 MB / 421.7 MB, free: 8.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.3631, allocations: 1.308 MB / 423 MB, free: 7.465 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003159/0.3662, allocations: 2.251 MB / 425.3 MB, free: 5.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.3663, allocations: 8 kB / 425.3 MB, free: 5.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004796/0.3711, allocations: 2.791 MB / 428.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.3711, allocations: 16.03 kB / 428.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.3711, allocations: 15.98 kB / 428.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.3722, allocations: 427.5 kB / 428.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.3737, allocations: 398.2 kB / 428.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/0.3794, allocations: 5.308 MB / 434.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.3813, allocations: 121.1 kB / 434.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.3814, allocations: 75.98 kB / 434.4 MB, free: 11.77 MB / 350.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.3829, allocations: 0.7857 MB / 435.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004312/0.3833, allocations: 197.6 kB / 435.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004116/0.3875, allocations: 2.402 MB / 437.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.197e-05/0.3875, allocations: 16 kB / 437.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.3875, allocations: 4 kB / 437.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.3875, allocations: 7.969 kB / 437.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009243/0.3968, allocations: 5.277 MB / 443.1 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.3968, allocations: 4 kB / 443.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.3979, allocations: 254 kB / 443.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00125/0.3992, allocations: 458 kB / 443.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.3993, allocations: 43.97 kB / 443.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006835/0.4062, allocations: 6.728 MB / 450.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.4062, allocations: 7.562 kB / 450.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0059/0.4121, allocations: 3.572 MB / 454.2 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.4132, allocations: 446.6 kB / 454.6 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003075/0.4136, allocations: 36 kB / 454.6 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.4147, allocations: 99.88 kB / 454.7 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002778/0.415, allocations: 115.8 kB / 454.9 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.944e-05/0.4151, allocations: 40 kB / 454.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.4171, allocations: 1.291 MB / 456.2 MB, free: 5.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4171, allocations: 0 / 456.2 MB, free: 5.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002009/0.4191, allocations: 0.5469 MB / 456.7 MB, free: 4.934 MB / 366.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.0004618/0.4196, allocations: 222.2 kB / 456.9 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003978/0.4236, allocations: 2.408 MB / 459.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4236, allocations: 0 / 459.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002477/0.4261, allocations: 1.514 MB / 460.9 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/0.4285, allocations: 438 kB / 461.3 MB, free: 400 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008914/0.4374, allocations: 6.255 MB / 467.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001651/0.4391, allocations: 2.006 MB / 469.6 MB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001531/0.4407, allocations: 423.6 kB / 470 MB, free: 7.617 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004604/0.4411, allocations: 135.4 kB / 470.1 MB, free: 7.484 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4411, allocations: 0 / 470.1 MB, free: 7.484 MB / 382.1 MB Notification: Performance of Templates: time 0.04911/0.4903, allocations: 26.84 MB / 496.9 MB, free: 12.95 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (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) 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) Reference file matches