Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001709/0.001709, allocations: 202 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007772/0.0007773, allocations: 106 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002054/0.0002054, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2661, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4/0.6661, allocations: 115 MB / 0.5114 GB, free: 99.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/0.6664, allocations: 94.16 kB / 0.5115 GB, free: 99.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2221/0.8885, allocations: 83.13 MB / 0.5927 GB, free: 18.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.8886, allocations: 0 / 0.5927 GB, free: 18.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002126/0.8888, allocations: 71.88 kB / 0.5928 GB, free: 18.84 MB / 378.7 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.006345/0.8951, allocations: 2.962 MB / 0.5957 GB, free: 15.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.8952, allocations: 12.03 kB / 0.5957 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002079/0.8973, allocations: 464.9 kB / 0.5961 GB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0035/0.9008, allocations: 1.912 MB / 0.598 GB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.9009, allocations: 185.4 kB / 0.5982 GB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005126/0.9015, allocations: 252.4 kB / 0.5984 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005127/0.9066, allocations: 3.246 MB / 0.6016 GB, free: 9.555 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.39e-05/0.9067, allocations: 19.72 kB / 0.6016 GB, free: 9.535 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002635/0.907, allocations: 108 kB / 0.6017 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.964e-05/0.9071, allocations: 108.9 kB / 0.6018 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004252/0.9113, allocations: 2.584 MB / 0.6043 GB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01576/0.9271, allocations: 10.49 MB / 0.6146 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.9297, allocations: 1.829 MB / 0.6164 GB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.9312, allocations: 0.9167 MB / 0.6173 GB, free: 9.035 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003563/0.9316, allocations: 223.1 kB / 0.6175 GB, free: 8.777 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.9316, allocations: 47.56 kB / 0.6175 GB, free: 8.723 MB / 394.7 MB Notification: Performance of pre-optimization done (n=118): time 3.266e-06/0.9317, allocations: 0 / 0.6175 GB, free: 8.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=144): time 0.02131/0.953, allocations: 8.76 MB / 0.6261 GB, free: 15.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.953, allocations: 68.66 kB / 0.6261 GB, free: 15.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002963/0.956, allocations: 1.846 MB / 0.6279 GB, free: 13.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.9562, allocations: 45.7 kB / 0.628 GB, free: 13.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009291/0.9571, allocations: 1.252 MB / 0.6292 GB, free: 12.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004388/0.9575, allocations: 492.8 kB / 0.6297 GB, free: 12.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.9577, allocations: 36 kB / 0.6297 GB, free: 12.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.9578, allocations: 373.9 kB / 0.6301 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/0.9594, allocations: 0.8823 MB / 0.6309 GB, free: 10.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001883/0.9613, allocations: 1.372 MB / 0.6323 GB, free: 9.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003592/0.9649, allocations: 2.393 MB / 0.6346 GB, free: 6.648 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.557e-06/0.965, allocations: 4 kB / 0.6346 GB, free: 6.645 MB / 410.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005463/0.9704, allocations: 2.995 MB / 0.6375 GB, free: 3.633 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.9705, allocations: 15.98 kB / 0.6375 GB, free: 3.617 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/0.9705, allocations: 16 kB / 0.6376 GB, free: 3.602 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/0.972, allocations: 0.5845 MB / 0.6381 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/0.9735, allocations: 415.3 kB / 0.6385 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007357/0.9809, allocations: 5.482 MB / 0.6439 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.9825, allocations: 143.8 kB / 0.644 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/0.9827, allocations: 75.98 kB / 0.6441 GB, free: 12.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001454/0.9842, allocations: 0.7982 MB / 0.6449 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000482/0.9847, allocations: 205.5 kB / 0.6451 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004988/0.9897, allocations: 2.658 MB / 0.6477 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.9897, allocations: 12 kB / 0.6477 GB, free: 9.082 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.9897, allocations: 4 kB / 0.6477 GB, free: 9.078 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.9897, allocations: 11.97 kB / 0.6477 GB, free: 9.066 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009757/0.9995, allocations: 5.566 MB / 0.6531 GB, free: 3.383 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/0.9995, allocations: 7.984 kB / 0.6531 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/1.001, allocations: 255.6 kB / 0.6534 GB, free: 3.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001764/1.002, allocations: 0.6544 MB / 0.654 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/1.002, allocations: 35.98 kB / 0.654 GB, free: 2.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008798/1.011, allocations: 7.157 MB / 0.661 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.011, allocations: 7.938 kB / 0.661 GB, free: 10.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006497/1.018, allocations: 3.899 MB / 0.6649 GB, free: 7.012 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009845/1.019, allocations: 470.5 kB / 0.6653 GB, free: 6.531 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003667/1.019, allocations: 32 kB / 0.6653 GB, free: 6.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/1.02, allocations: 115.9 kB / 0.6654 GB, free: 6.387 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002745/1.021, allocations: 125 kB / 0.6656 GB, free: 6.266 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/1.021, allocations: 43.98 kB / 0.6656 GB, free: 6.223 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002033/1.023, allocations: 1.271 MB / 0.6668 GB, free: 4.961 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.023, allocations: 0 / 0.6668 GB, free: 4.961 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001985/1.025, allocations: 0.6405 MB / 0.6675 GB, free: 4.32 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006261/1.025, allocations: 347.7 kB / 0.6678 GB, free: 3.973 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004456/1.03, allocations: 2.626 MB / 0.6704 GB, free: 1.297 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/1.03, allocations: 64 / 0.6704 GB, free: 1.297 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1579/1.188, allocations: 1.657 MB / 0.672 GB, free: 102.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003403/1.191, allocations: 433 kB / 0.6724 GB, free: 102.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007428/1.199, allocations: 6.216 MB / 0.6785 GB, free: 100 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001376/1.2, allocations: 1.999 MB / 0.6804 GB, free: 99.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006038/1.201, allocations: 141.6 kB / 0.6806 GB, free: 99.3 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/1.201, allocations: 0 / 0.6806 GB, free: 99.3 MB / 442.7 MB Notification: Performance of Templates: time 0.05172/1.252, allocations: 58.95 MB / 0.7381 GB, free: 81.52 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches