Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009724/0.0009727, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 221.3 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008685/0.0008683, allocations: 88.11 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.96e-05/1.963e-05, allocations: 4 kB / 343.8 MB, free: 4.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08683/0.08687, allocations: 50.41 MB / 394.2 MB, free: 1.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3285/0.4154, allocations: 126.2 MB / 0.5082 GB, free: 9.254 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.4157, allocations: 89.47 kB / 0.5083 GB, free: 9.172 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3332/0.7489, allocations: 55.61 MB / 0.5626 GB, free: 102.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.749, allocations: 0 / 0.5626 GB, free: 102.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002211/0.7492, allocations: 73.52 kB / 0.5627 GB, free: 102.7 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 617 * Number of variables: 617 Notification: Performance of Generate backend data structure: time 0.004681/0.7539, allocations: 2.584 MB / 0.5652 GB, free: 101.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.754, allocations: 9.594 kB / 0.5652 GB, free: 101.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/0.7553, allocations: 436.5 kB / 0.5656 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003124/0.7584, allocations: 1.74 MB / 0.5673 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.7586, allocations: 180.3 kB / 0.5675 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003716/0.7589, allocations: 242.4 kB / 0.5677 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004414/0.7634, allocations: 2.96 MB / 0.5706 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.808e-05/0.7634, allocations: 5.031 kB / 0.5706 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/0.7636, allocations: 105.4 kB / 0.5707 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.882e-05/0.7638, allocations: 98.91 kB / 0.5708 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003584/0.7673, allocations: 2.368 MB / 0.5731 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01173/0.7791, allocations: 10.3 MB / 0.5832 GB, free: 95.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/0.7815, allocations: 2.708 MB / 0.5858 GB, free: 93.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.7827, allocations: 1.112 MB / 0.5869 GB, free: 92.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002768/0.783, allocations: 134.6 kB / 0.587 GB, free: 92.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.783, allocations: 51.44 kB / 0.5871 GB, free: 92.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=152): time 3.206e-06/0.783, allocations: 4 kB / 0.5871 GB, free: 92.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=175): time 0.01407/0.7971, allocations: 7.353 MB / 0.5943 GB, free: 90.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.7972, allocations: 179.3 kB / 0.5945 GB, free: 90.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/0.7994, allocations: 1.604 MB / 0.596 GB, free: 89.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.7995, allocations: 56.48 kB / 0.5961 GB, free: 89.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006626/0.8002, allocations: 1.161 MB / 0.5972 GB, free: 88.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003591/0.8005, allocations: 0.5898 MB / 0.5978 GB, free: 87.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.354e-05/0.8006, allocations: 39.66 kB / 0.5978 GB, free: 87.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.8007, allocations: 383.8 kB / 0.5982 GB, free: 87.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.8019, allocations: 0.8825 MB / 0.599 GB, free: 87.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.8032, allocations: 1.336 MB / 0.6004 GB, free: 86.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.8045, allocations: 1.081 MB / 0.6014 GB, free: 85.99 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.8045, allocations: 7.812 kB / 0.6014 GB, free: 85.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.004788/0.8093, allocations: 3.265 MB / 0.6046 GB, free: 84.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007542/0.8101, allocations: 4.888 MB / 0.6094 GB, free: 79.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.626e-05/0.8101, allocations: 15.53 kB / 0.6094 GB, free: 79.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002072/0.8122, allocations: 0.968 MB / 0.6103 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.8135, allocations: 372.7 kB / 0.6107 GB, free: 79.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.8242, allocations: 11.97 MB / 0.6224 GB, free: 71.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.826, allocations: 107.3 kB / 0.6225 GB, free: 71.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.8261, allocations: 77.02 kB / 0.6226 GB, free: 71.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.665e-06/0.8262, allocations: 3.844 kB / 0.6226 GB, free: 71.01 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004159/0.8303, allocations: 3.052 MB / 0.6255 GB, free: 69.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.8304, allocations: 15.06 kB / 0.6256 GB, free: 69.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001948/0.8323, allocations: 0.9642 MB / 0.6265 GB, free: 68.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.8335, allocations: 367.2 kB / 0.6268 GB, free: 67.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/0.8441, allocations: 11.97 MB / 0.6385 GB, free: 56.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.8458, allocations: 102 kB / 0.6386 GB, free: 56.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.846, allocations: 72 kB / 0.6387 GB, free: 56.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 185 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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%) 27} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003824/0.8464, allocations: 220.5 kB / 0.6389 GB, free: 56.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.847, allocations: 217.4 kB / 0.6391 GB, free: 56.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004398/0.8514, allocations: 2.935 MB / 0.642 GB, free: 53.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.8514, allocations: 16 kB / 0.642 GB, free: 53.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.8514, allocations: 7.141 kB / 0.642 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.8515, allocations: 11.36 kB / 0.642 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008931/0.8604, allocations: 5.854 MB / 0.6477 GB, free: 48.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.8604, allocations: 7.281 kB / 0.6477 GB, free: 48.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009039/0.8613, allocations: 222 kB / 0.648 GB, free: 48.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002228/0.8636, allocations: 1.023 MB / 0.649 GB, free: 47.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.8637, allocations: 46.8 kB / 0.649 GB, free: 47.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/0.8757, allocations: 13.67 MB / 0.6623 GB, free: 34.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.8757, allocations: 4 kB / 0.6624 GB, free: 34.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005995/0.8817, allocations: 4.411 MB / 0.6667 GB, free: 30.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.883, allocations: 493.8 kB / 0.6671 GB, free: 30.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005433/0.8835, allocations: 43.36 kB / 0.6672 GB, free: 30.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/0.8848, allocations: 100.3 kB / 0.6673 GB, free: 30.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.8851, allocations: 140.5 kB / 0.6674 GB, free: 30.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.8852, allocations: 46.77 kB / 0.6674 GB, free: 30.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001797/0.887, allocations: 1.231 MB / 0.6686 GB, free: 28.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8871, allocations: 0 / 0.6686 GB, free: 28.85 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003797/0.8909, allocations: 1.206 MB / 0.6698 GB, free: 27.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 12 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 27,(2,100.0%) 4} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007435/0.8916, allocations: 376 kB / 0.6702 GB, free: 27.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007055/0.8987, allocations: 5.434 MB / 0.6755 GB, free: 22.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.8987, allocations: 0 / 0.6755 GB, free: 22.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002622/0.9013, allocations: 2.097 MB / 0.6775 GB, free: 20.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.9036, allocations: 0.5298 MB / 0.6781 GB, free: 19.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008131/0.9117, allocations: 4.742 MB / 0.6827 GB, free: 14.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001682/0.9134, allocations: 2.043 MB / 0.6847 GB, free: 12.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002435/0.9159, allocations: 0.7052 MB / 0.6854 GB, free: 12.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.9162, allocations: 99.44 kB / 0.6855 GB, free: 11.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.372e-06/0.9162, allocations: 4 kB / 0.6855 GB, free: 11.98 MB / 426.7 MB Notification: Performance of Templates: time 0.2836/1.2, allocations: 49.12 MB / 0.7334 GB, free: 102.4 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Rectifier/SMEE_Rectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches