Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001418, allocations: 98.83 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 206.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002742/0.0002742, allocations: 8 kB / 306.6 MB, free: 1.402 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1064, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01071/0.1172, allocations: 9.33 MB / 367.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008554/0.1258, allocations: 3.818 MB / 371.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00274/0.1286, allocations: 55.75 kB / 371.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2291/0.3578, allocations: 0.6717 MB / 371.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005179/0.363, allocations: 0.8174 MB / 372.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002033/0.3651, allocations: 337.5 kB / 373.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006409/0.3715, allocations: 2.09 MB / 375.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003315/0.3748, allocations: 1.723 MB / 376.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003149/0.378, allocations: 1.013 MB / 377.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003712/0.3818, allocations: 1.321 MB / 379.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009242/0.3827, allocations: 159.7 kB / 379.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002075/0.3848, allocations: 366 kB / 379.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001229/0.386, allocations: 0.7627 MB / 380.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001831/0.3879, allocations: 0.5832 MB / 381.1 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007544/0.3954, allocations: 4.013 MB / 385.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3955, allocations: 1.25 kB / 385.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.3955, allocations: 0 / 385.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002376/0.3957, allocations: 0 / 385.1 MB, free: 8.43 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.009872/0.4056, allocations: 2.992 MB / 388.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4057, allocations: 9.344 kB / 388.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002744/0.4084, allocations: 452.2 kB / 388.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006165/0.4146, allocations: 1.751 MB / 390.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/0.4149, allocations: 199.1 kB / 390.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.4159, allocations: 257.4 kB / 390.8 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009978/0.4259, allocations: 3.217 MB / 394 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.154e-05/0.4261, allocations: 3 kB / 394 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002842/0.4264, allocations: 102.7 kB / 394.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001816/0.4265, allocations: 118 kB / 394.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005828/0.4324, allocations: 2.715 MB / 396.9 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02061/0.453, allocations: 10.42 MB / 407.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.4557, allocations: 1.782 MB / 409.1 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003548/0.4561, allocations: 203.2 kB / 409.3 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.4562, allocations: 51.5 kB / 409.4 MB, free: 8.008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 5.42e-06/0.4562, allocations: 4.922 kB / 409.4 MB, free: 8.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.02039/0.4766, allocations: 7.873 MB / 417.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.4767, allocations: 64.72 kB / 417.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003807/0.4805, allocations: 1.849 MB / 419.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003989/0.481, allocations: 45.7 kB / 419.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/0.4821, allocations: 1.245 MB / 420.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008637/0.483, allocations: 464.1 kB / 420.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.4831, allocations: 32 kB / 420.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002569/0.4834, allocations: 373.9 kB / 421.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/0.485, allocations: 0.8276 MB / 422.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001925/0.487, allocations: 1.324 MB / 423.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.4887, allocations: 1.024 MB / 424.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.4887, allocations: 4 kB / 424.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005481/0.4942, allocations: 2.787 MB / 427.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.4943, allocations: 16 kB / 427.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-05/0.4943, allocations: 16 kB / 427.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.4954, allocations: 403.1 kB / 427.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.497, allocations: 419.3 kB / 428.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006261/0.5033, allocations: 5.206 MB / 433.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002728/0.506, allocations: 135.8 kB / 433.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000282/0.5064, allocations: 68 kB / 433.5 MB, free: 15.17 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 (190): * Single equations (assignments): 185 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00206/0.5084, allocations: 0.7937 MB / 434.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007239/0.5092, allocations: 193.7 kB / 434.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004451/0.5136, allocations: 2.398 MB / 436.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.726e-05/0.5137, allocations: 16 kB / 436.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.5137, allocations: 10.41 kB / 436.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.5137, allocations: 11.91 kB / 436.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/0.5243, allocations: 5.268 MB / 442.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/0.5243, allocations: 4 kB / 442.2 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.5254, allocations: 264.2 kB / 442.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/0.5266, allocations: 447.1 kB / 442.9 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.5267, allocations: 39.94 kB / 442.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006765/0.5335, allocations: 6.694 MB / 449.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/0.5336, allocations: 8.031 kB / 449.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006682/0.5402, allocations: 3.907 MB / 453.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/0.542, allocations: 450.6 kB / 454 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007749/0.5428, allocations: 36 kB / 454 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001723/0.5445, allocations: 111.3 kB / 454.1 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.5448, allocations: 112.7 kB / 454.2 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.545, allocations: 44 kB / 454.3 MB, free: 9.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002793/0.5478, allocations: 1.274 MB / 455.5 MB, free: 8.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5478, allocations: 0 / 455.5 MB, free: 8.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002989/0.5508, allocations: 0.5391 MB / 456.1 MB, free: 7.77 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 (118): * Single equations (assignments): 113 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000582/0.5514, allocations: 195 kB / 456.3 MB, free: 7.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004753/0.5562, allocations: 2.416 MB / 458.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.5562, allocations: 0 / 458.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002654/0.5588, allocations: 1.499 MB / 460.2 MB, free: 3.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/0.5616, allocations: 423.5 kB / 460.6 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.5734, allocations: 6.062 MB / 466.7 MB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002626/0.5761, allocations: 2.065 MB / 468.7 MB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001947/0.578, allocations: 439.7 kB / 469.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000649/0.5787, allocations: 131.4 kB / 469.3 MB, free: 10.37 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5787, allocations: 0 / 469.3 MB, free: 10.37 MB / 382.1 MB Notification: Performance of Templates: time 0.04911/0.6278, allocations: 25.74 MB / 495 MB, free: 0.8867 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches