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.001117/0.001117, allocations: 113.9 kB / 17.07 MB, free: 6 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.001119/0.001119, allocations: 190.9 kB / 18 MB, free: 5.082 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.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009805/0.0009805, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2351, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01183/0.247, allocations: 11.48 MB / 412.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006204/0.2532, allocations: 3.861 MB / 416.1 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009986/0.2542, allocations: 63.75 kB / 416.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.2559, allocations: 0.854 MB / 417 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001977/0.2579, allocations: 0.9902 MB / 418 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009036/0.2588, allocations: 0.507 MB / 418.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002784/0.2616, allocations: 3.215 MB / 421.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002595/0.2642, allocations: 2.578 MB / 424.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001634/0.2659, allocations: 1.437 MB / 425.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001982/0.2679, allocations: 1.81 MB / 427.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004383/0.2683, allocations: 391.9 kB / 427.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009045/0.2693, allocations: 0.6207 MB / 428.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000895/0.2702, allocations: 1.067 MB / 429.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.2718, allocations: 1.723 MB / 431.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004483/0.2763, allocations: 5.044 MB / 436.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.2763, allocations: 3.984 kB / 436.4 MB, free: 5.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2763, allocations: 4 kB / 436.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.835e-05/0.2764, allocations: 3.938 kB / 436.4 MB, free: 5.043 MB / 350.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.006167/0.2826, allocations: 3.476 MB / 439.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.2827, allocations: 8.031 kB / 439.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/0.2839, allocations: 409 kB / 440.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002838/0.2867, allocations: 1.835 MB / 442.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.2869, allocations: 193.1 kB / 442.3 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003588/0.2872, allocations: 251.9 kB / 442.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004841/0.2921, allocations: 3.251 MB / 445.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-05/0.2922, allocations: 0 / 445.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/0.2924, allocations: 104 kB / 445.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.2925, allocations: 116.9 kB / 446 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004229/0.2968, allocations: 2.705 MB / 448.7 MB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01407/0.3109, allocations: 10.25 MB / 459 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.313, allocations: 1.776 MB / 460.7 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.3147, allocations: 1.049 MB / 461.8 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002693/0.315, allocations: 211.2 kB / 462 MB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.315, allocations: 43.56 kB / 462 MB, free: 10.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.737e-06/0.315, allocations: 0 / 462 MB, free: 10.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01614/0.3312, allocations: 7.424 MB / 469.4 MB, free: 3.129 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3313, allocations: 64.72 kB / 469.5 MB, free: 3.055 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.3337, allocations: 1.876 MB / 471.4 MB, free: 1.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.568e-05/0.3338, allocations: 45.7 kB / 471.4 MB, free: 1.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008201/0.3347, allocations: 1.245 MB / 472.7 MB, free: 15.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.335, allocations: 461.3 kB / 473.1 MB, free: 15.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004942/0.3355, allocations: 307.3 kB / 473.4 MB, free: 15.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3356, allocations: 301.1 kB / 473.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/0.337, allocations: 0.8159 MB / 474.5 MB, free: 13.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/0.3387, allocations: 1.312 MB / 475.9 MB, free: 12.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003089/0.3418, allocations: 2.254 MB / 478.1 MB, free: 9.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3418, allocations: 4 kB / 478.1 MB, free: 9.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004925/0.3468, allocations: 2.795 MB / 480.9 MB, free: 7.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.3468, allocations: 12 kB / 480.9 MB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.3468, allocations: 16 kB / 480.9 MB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009891/0.3478, allocations: 426.2 kB / 481.3 MB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.3492, allocations: 403.3 kB / 481.7 MB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006124/0.3554, allocations: 5.795 MB / 487.5 MB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.357, allocations: 123.8 kB / 487.7 MB, free: 112 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.3572, allocations: 76 kB / 487.7 MB, free: 36 kB / 398.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.00128/0.3585, allocations: 0.7878 MB / 488.5 MB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003537/0.3588, allocations: 193.7 kB / 488.7 MB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003946/0.3628, allocations: 2.391 MB / 491.1 MB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.897e-05/0.3628, allocations: 16 kB / 491.1 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.3629, allocations: 7.938 kB / 491.1 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.3629, allocations: 7.969 kB / 491.1 MB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008448/0.3713, allocations: 5.268 MB / 496.4 MB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.3714, allocations: 7.984 kB / 496.4 MB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.3724, allocations: 252.2 kB / 496.7 MB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.3736, allocations: 458 kB / 497.1 MB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.3737, allocations: 39.98 kB / 497.1 MB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007199/0.3809, allocations: 7.326 MB / 0.4926 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.186e-05/0.381, allocations: 11.88 kB / 0.4927 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005526/0.3865, allocations: 3.578 MB / 0.4961 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009939/0.3875, allocations: 450.6 kB / 0.4966 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.3878, allocations: 31.98 kB / 0.4966 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.3889, allocations: 99.89 kB / 0.4967 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002603/0.3891, allocations: 116.7 kB / 0.4968 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.655e-05/0.3893, allocations: 39.98 kB / 0.4969 GB, free: 10.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001799/0.3911, allocations: 1.287 MB / 0.4981 GB, free: 8.949 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3911, allocations: 4 kB / 0.4981 GB, free: 8.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001828/0.3929, allocations: 0.5469 MB / 0.4986 GB, free: 8.398 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.0004572/0.3934, allocations: 226.8 kB / 0.4989 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003886/0.3973, allocations: 2.418 MB / 0.5012 GB, free: 5.699 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.3973, allocations: 2 kB / 0.5012 GB, free: 5.699 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/0.3996, allocations: 1.506 MB / 0.5027 GB, free: 4.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/0.4017, allocations: 450.9 kB / 0.5031 GB, free: 3.715 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008051/0.4098, allocations: 5.09 MB / 0.5081 GB, free: 14.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/0.4116, allocations: 2.01 MB / 0.5101 GB, free: 12.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00129/0.4129, allocations: 427.7 kB / 0.5105 GB, free: 12.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003958/0.4133, allocations: 127.4 kB / 0.5106 GB, free: 11.95 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4133, allocations: 0 / 0.5106 GB, free: 11.95 MB / 446.1 MB Notification: Performance of Templates: time 0.2307/0.644, allocations: 28.49 MB / 0.5384 GB, free: 132.4 MB / 462.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