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.0009208/0.0009208, allocations: 89.27 kB / 16.3 MB, free: 6.133 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.0009086/0.0009087, allocations: 184.8 kB / 17.2 MB, free: 6.016 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.4/1.4, allocations: 223.2 MB / 241.1 MB, free: 276 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002787, allocations: 11.94 kB / 300.7 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1183, allocations: 50.41 MB / 351.1 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009605/0.1279, allocations: 9.293 MB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00636/0.1343, allocations: 3.76 MB / 364.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.1359, allocations: 55.75 kB / 364.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.1379, allocations: 0.6764 MB / 364.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002728/0.1406, allocations: 0.8256 MB / 365.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.1421, allocations: 323.5 kB / 366.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003975/0.1461, allocations: 2.083 MB / 368.2 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002583/0.1487, allocations: 1.721 MB / 369.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.1505, allocations: 1.008 MB / 370.9 MB, free: 180 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1901/0.3407, allocations: 1.304 MB / 372.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008074/0.3415, allocations: 163.3 kB / 372.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.3429, allocations: 356.4 kB / 372.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009399/0.3438, allocations: 0.7655 MB / 373.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.3449, allocations: 0.5804 MB / 374 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005139/0.35, allocations: 4 MB / 378 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3501, allocations: 0 / 378 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3501, allocations: 2.594 kB / 378 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001514/0.3502, allocations: 0 / 378 MB, free: 10.82 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.007505/0.3578, allocations: 2.987 MB / 381 MB, free: 9.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3578, allocations: 9.625 kB / 381 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/0.3596, allocations: 410.4 kB / 381.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004112/0.3637, allocations: 1.745 MB / 383.2 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.364, allocations: 198.1 kB / 383.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006445/0.3646, allocations: 248.3 kB / 383.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00605/0.3707, allocations: 3.222 MB / 386.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/0.3708, allocations: 6.656 kB / 386.9 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.371, allocations: 102.9 kB / 387 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001496/0.3712, allocations: 122.1 kB / 387.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005078/0.3763, allocations: 2.706 MB / 389.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01728/0.3936, allocations: 10.42 MB / 400.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001946/0.3956, allocations: 1.786 MB / 402 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003323/0.3959, allocations: 207.4 kB / 402.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.396, allocations: 45.94 kB / 402.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.667e-06/0.396, allocations: 0 / 402.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.0182/0.4142, allocations: 7.872 MB / 410.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.4143, allocations: 72.72 kB / 410.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002857/0.4171, allocations: 1.841 MB / 412 MB, free: 6.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.4173, allocations: 50.56 kB / 412.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009214/0.4182, allocations: 1.235 MB / 413.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003656/0.4186, allocations: 467.5 kB / 413.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.4187, allocations: 36 kB / 413.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.4188, allocations: 369.9 kB / 414.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.4202, allocations: 0.8298 MB / 415 MB, free: 3.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.4217, allocations: 1.317 MB / 416.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.4232, allocations: 1.026 MB / 417.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.4233, allocations: 4 kB / 417.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004633/0.4279, allocations: 2.797 MB / 420.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.4279, allocations: 12 kB / 420.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.838e-05/0.428, allocations: 16 kB / 420.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009349/0.4289, allocations: 395.5 kB / 420.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/0.4304, allocations: 422.1 kB / 421 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005242/0.4357, allocations: 5.208 MB / 426.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.4374, allocations: 143.8 kB / 426.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.4376, allocations: 71.98 kB / 426.4 MB, free: 7.383 MB / 334.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.001717/0.4393, allocations: 0.7865 MB / 427.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004288/0.4397, allocations: 193.7 kB / 427.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003951/0.4437, allocations: 2.397 MB / 429.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/0.4438, allocations: 23.66 kB / 429.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.4438, allocations: 0 / 429.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.4438, allocations: 11.97 kB / 429.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009162/0.453, allocations: 5.261 MB / 435 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.453, allocations: 4 kB / 435 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.4541, allocations: 269.8 kB / 435.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.4552, allocations: 434.2 kB / 435.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.312e-05/0.4553, allocations: 47.95 kB / 435.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006645/0.4619, allocations: 6.687 MB / 442.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.462, allocations: 8 kB / 442.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005857/0.4678, allocations: 3.902 MB / 446.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/0.4691, allocations: 458.5 kB / 446.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002693/0.4694, allocations: 31.98 kB / 446.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.4706, allocations: 121.2 kB / 447 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00026/0.4708, allocations: 108.7 kB / 447.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.512e-05/0.4709, allocations: 43.98 kB / 447.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002035/0.473, allocations: 1.267 MB / 448.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.473, allocations: 0 / 448.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002074/0.4751, allocations: 0.5391 MB / 448.9 MB, free: 148 kB / 350.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.0004239/0.4755, allocations: 190.6 kB / 449.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003915/0.4794, allocations: 2.417 MB / 451.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.4794, allocations: 4 kB / 451.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002572/0.482, allocations: 1.501 MB / 453 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/0.4844, allocations: 423.4 kB / 453.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.4946, allocations: 6.07 MB / 459.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001694/0.4964, allocations: 2.057 MB / 461.6 MB, free: 3.297 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001494/0.4979, allocations: 431.6 kB / 462 MB, free: 2.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004068/0.4983, allocations: 127.4 kB / 462.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of SimCode: time 1.883e-06/0.4983, allocations: 0 / 462.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of Templates: time 0.04599/0.5443, allocations: 25.68 MB / 487.8 MB, free: 9.355 MB / 398.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","../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