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.001504/0.001503, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001653/0.001653, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.322, allocations: 50.54 MB / 409.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01316/0.3352, allocations: 11.52 MB / 420.8 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00973/0.345, allocations: 3.921 MB / 424.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003095/0.3481, allocations: 63.75 kB / 424.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002808/0.351, allocations: 0.8696 MB / 425.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004202/0.3552, allocations: 0.9863 MB / 426.6 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.357, allocations: 0.5109 MB / 427.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004712/0.3617, allocations: 3.226 MB / 430.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003523/0.3653, allocations: 2.582 MB / 432.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.3678, allocations: 1.452 MB / 434.4 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003299/0.3711, allocations: 1.817 MB / 436.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009409/0.3721, allocations: 388 kB / 436.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.3736, allocations: 0.6051 MB / 437.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001399/0.375, allocations: 1.071 MB / 438.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002552/0.3775, allocations: 1.723 MB / 440 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006778/0.3843, allocations: 5.058 MB / 445 MB, free: 13.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3844, allocations: 0 / 445 MB, free: 13.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3844, allocations: 7.938 kB / 445 MB, free: 13.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001338/0.3845, allocations: 0 / 445 MB, free: 13.77 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.008057/0.3926, allocations: 3.499 MB / 448.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3926, allocations: 8.031 kB / 448.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/0.3943, allocations: 445 kB / 449 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00332/0.3976, allocations: 1.862 MB / 450.9 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.3978, allocations: 189.2 kB / 451 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003596/0.3981, allocations: 244 kB / 451.3 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00576/0.4039, allocations: 3.255 MB / 454.5 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.526e-05/0.404, allocations: 7.906 kB / 454.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002194/0.4042, allocations: 100 kB / 454.6 MB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001752/0.4044, allocations: 112.9 kB / 454.7 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004791/0.4092, allocations: 2.709 MB / 457.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01663/0.4258, allocations: 10.24 MB / 467.7 MB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002273/0.4281, allocations: 1.77 MB / 469.5 MB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.4299, allocations: 1.049 MB / 470.5 MB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003014/0.4302, allocations: 207.2 kB / 470.7 MB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.653e-05/0.4303, allocations: 51.56 kB / 470.8 MB, free: 3.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 2.715e-06/0.4303, allocations: 3.938 kB / 470.8 MB, free: 3.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01672/0.447, allocations: 7.419 MB / 478.2 MB, free: 11.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.4471, allocations: 64.72 kB / 478.3 MB, free: 11.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002851/0.4499, allocations: 1.889 MB / 480.1 MB, free: 9.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001219/0.4501, allocations: 45.7 kB / 480.2 MB, free: 9.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008798/0.451, allocations: 1.245 MB / 481.4 MB, free: 8.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003877/0.4514, allocations: 473.2 kB / 481.9 MB, free: 8.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004845/0.4518, allocations: 295.3 kB / 482.2 MB, free: 7.734 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.452, allocations: 305.1 kB / 482.5 MB, free: 7.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.4534, allocations: 0.812 MB / 483.3 MB, free: 6.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.4552, allocations: 1.315 MB / 484.6 MB, free: 5.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00324/0.4584, allocations: 2.246 MB / 486.9 MB, free: 2.629 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.4585, allocations: 4 kB / 486.9 MB, free: 2.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004984/0.4635, allocations: 2.799 MB / 489.7 MB, free: 15.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.4635, allocations: 12.06 kB / 489.7 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.366e-05/0.4635, allocations: 16 kB / 489.7 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009817/0.4645, allocations: 430 kB / 490.1 MB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.466, allocations: 399.3 kB / 490.5 MB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006018/0.472, allocations: 5.788 MB / 496.3 MB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/0.4737, allocations: 123.8 kB / 496.4 MB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.4739, allocations: 75.92 kB / 496.5 MB, free: 8.68 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.00136/0.4752, allocations: 0.7979 MB / 497.3 MB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/0.4756, allocations: 197.6 kB / 497.5 MB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004085/0.4797, allocations: 2.403 MB / 499.9 MB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.907e-05/0.4798, allocations: 12 kB / 499.9 MB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.4798, allocations: 7.938 kB / 499.9 MB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.4798, allocations: 7.969 kB / 499.9 MB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009018/0.4888, allocations: 5.269 MB / 0.4933 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.4889, allocations: 4 kB / 0.4933 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.49, allocations: 251.6 kB / 0.4936 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/0.4912, allocations: 466.6 kB / 0.494 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.4914, allocations: 35.98 kB / 0.4941 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007574/0.4989, allocations: 7.334 MB / 0.5012 GB, free: 7.281 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.499, allocations: 11.88 kB / 0.5012 GB, free: 7.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006043/0.505, allocations: 3.575 MB / 0.5047 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.5061, allocations: 454.6 kB / 0.5051 GB, free: 3.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.5064, allocations: 31.98 kB / 0.5052 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.5075, allocations: 95.89 kB / 0.5053 GB, free: 3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.5078, allocations: 108.7 kB / 0.5054 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.98e-05/0.5079, allocations: 47.98 kB / 0.5054 GB, free: 2.848 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002054/0.5099, allocations: 1.299 MB / 0.5067 GB, free: 1.559 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.51, allocations: 0 / 0.5067 GB, free: 1.559 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001964/0.5119, allocations: 0.5468 MB / 0.5072 GB, free: 1.012 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.0004658/0.5124, allocations: 230.4 kB / 0.5074 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004161/0.5166, allocations: 2.427 MB / 0.5098 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.5166, allocations: 0 / 0.5098 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.5191, allocations: 1.507 MB / 0.5113 GB, free: 12.76 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.5213, allocations: 453.4 kB / 0.5117 GB, free: 12.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008597/0.5299, allocations: 5.102 MB / 0.5167 GB, free: 7.137 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001707/0.5317, allocations: 2.014 MB / 0.5187 GB, free: 5.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001358/0.533, allocations: 431.7 kB / 0.5191 GB, free: 4.664 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004094/0.5335, allocations: 131.4 kB / 0.5192 GB, free: 4.535 MB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5335, allocations: 0 / 0.5192 GB, free: 4.535 MB / 446.1 MB Notification: Performance of Templates: time 0.2554/0.7889, allocations: 28.51 MB / 0.547 GB, free: 116.2 MB / 462.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches