Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.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_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.6 MB / 234.8 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 105.5 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.387e-05/2.39e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1249, allocations: 51.47 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3901/0.5151, allocations: 116.1 MB / 0.4993 GB, free: 9.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.5153, allocations: 88.33 kB / 0.4994 GB, free: 9.617 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.162/0.6773, allocations: 62.08 MB / 0.56 GB, free: 8 kB / 426.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.6773, allocations: 7.938 kB / 0.56 GB, free: 0 / 426.7 MB Notification: Performance of Transformations before backend: time 0.000245/0.6776, allocations: 75.98 kB / 0.5601 GB, free: 15.92 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.006975/0.6846, allocations: 3.03 MB / 0.563 GB, free: 12.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.6846, allocations: 11.97 kB / 0.563 GB, free: 12.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002213/0.6869, allocations: 487.4 kB / 0.5635 GB, free: 12.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004637/0.6915, allocations: 2.071 MB / 0.5655 GB, free: 10.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003108/0.6919, allocations: 287.9 kB / 0.5658 GB, free: 9.895 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006857/0.6925, allocations: 175.8 kB / 0.566 GB, free: 9.723 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005052/0.6976, allocations: 2.659 MB / 0.5686 GB, free: 7.059 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005752/0.7034, allocations: 3.176 MB / 0.5717 GB, free: 3.734 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.911e-05/0.7035, allocations: 19.83 kB / 0.5717 GB, free: 3.715 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002755/0.7038, allocations: 7.938 kB / 0.5717 GB, free: 3.707 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.7039, allocations: 113.5 kB / 0.5718 GB, free: 3.594 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2699/0.9739, allocations: 11.41 MB / 0.5829 GB, free: 80.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.9761, allocations: 2.712 MB / 0.5856 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.9773, allocations: 1.05 MB / 0.5866 GB, free: 79.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002799/0.9776, allocations: 140.9 kB / 0.5867 GB, free: 79.38 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00125/0.9788, allocations: 1.074 MB / 0.5878 GB, free: 79.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=156): time 5.881e-06/0.9788, allocations: 3.281 kB / 0.5878 GB, free: 79.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=180): time 0.01116/0.99, allocations: 6.428 MB / 0.5941 GB, free: 78.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.717e-05/0.9901, allocations: 313 kB / 0.5944 GB, free: 78 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/0.9923, allocations: 1.546 MB / 0.5959 GB, free: 77.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.9925, allocations: 36.86 kB / 0.5959 GB, free: 77.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009579/0.9934, allocations: 1.383 MB / 0.5973 GB, free: 77.31 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003925/0.9938, allocations: 0.5826 MB / 0.5978 GB, free: 77.01 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-05/0.9939, allocations: 0 / 0.5978 GB, free: 77.01 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.994, allocations: 386.9 kB / 0.5982 GB, free: 76.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.9952, allocations: 0.9641 MB / 0.5991 GB, free: 76.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.9967, allocations: 1.486 MB / 0.6006 GB, free: 76.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.998, allocations: 1.171 MB / 0.6017 GB, free: 76.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.9981, allocations: 3.125 kB / 0.6017 GB, free: 76.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004919/1.003, allocations: 3.351 MB / 0.605 GB, free: 75.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001241/1.004, allocations: 5.348 MB / 0.6102 GB, free: 70.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/1.004, allocations: 12.94 kB / 0.6103 GB, free: 70.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002744/1.007, allocations: 1.173 MB / 0.6114 GB, free: 70.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/1.009, allocations: 381.3 kB / 0.6118 GB, free: 70.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0128/1.021, allocations: 14 MB / 0.6254 GB, free: 61.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002596/1.024, allocations: 131.8 kB / 0.6256 GB, free: 61.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002934/1.024, allocations: 83.16 kB / 0.6256 GB, free: 61.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.024, allocations: 3.375 kB / 0.6256 GB, free: 61.54 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005185/1.03, allocations: 3.091 MB / 0.6287 GB, free: 60.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.233e-05/1.03, allocations: 15.8 kB / 0.6287 GB, free: 60.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003155/1.033, allocations: 1.157 MB / 0.6298 GB, free: 60.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/1.034, allocations: 376.2 kB / 0.6302 GB, free: 60.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01324/1.048, allocations: 14.01 MB / 0.6438 GB, free: 50.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/1.05, allocations: 125 kB / 0.644 GB, free: 50.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002005/1.05, allocations: 87.84 kB / 0.6441 GB, free: 50 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[3].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[2].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 3 {(2,100.0%) 16,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005359/1.051, allocations: 186.5 kB / 0.6442 GB, free: 49.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003846/1.051, allocations: 216.3 kB / 0.6444 GB, free: 49.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005892/1.057, allocations: 3.219 MB / 0.6476 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/1.057, allocations: 20.5 kB / 0.6476 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/1.057, allocations: 0 / 0.6476 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.446e-05/1.057, allocations: 12.33 kB / 0.6476 GB, free: 48.58 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/1.067, allocations: 6.144 MB / 0.6536 GB, free: 46.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.067, allocations: 3.562 kB / 0.6536 GB, free: 46.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008222/1.068, allocations: 208 kB / 0.6538 GB, free: 46.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003109/1.071, allocations: 1.387 MB / 0.6552 GB, free: 45.81 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/1.072, allocations: 22.34 kB / 0.6552 GB, free: 45.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/1.085, allocations: 14.2 MB / 0.6691 GB, free: 36.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.085, allocations: 0 / 0.6691 GB, free: 36.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006199/1.092, allocations: 4.7 MB / 0.6736 GB, free: 34.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/1.093, allocations: 0.5127 MB / 0.6741 GB, free: 33.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/1.093, allocations: 22.69 kB / 0.6742 GB, free: 33.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/1.095, allocations: 105.7 kB / 0.6743 GB, free: 33.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004775/1.095, allocations: 235.3 kB / 0.6745 GB, free: 33.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/1.095, allocations: 48.78 kB / 0.6745 GB, free: 33.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00153/1.097, allocations: 1.174 MB / 0.6757 GB, free: 33.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.097, allocations: 0 / 0.6757 GB, free: 33.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003905/1.101, allocations: 1.101 MB / 0.6768 GB, free: 33.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (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) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 52,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005259/1.101, allocations: 329.8 kB / 0.6771 GB, free: 33.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007808/1.109, allocations: 5.955 MB / 0.6829 GB, free: 30.06 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/1.109, allocations: 4.906 kB / 0.6829 GB, free: 30.06 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/1.112, allocations: 2.324 MB / 0.6852 GB, free: 28.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/1.115, allocations: 428.3 kB / 0.6856 GB, free: 28.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008952/1.124, allocations: 5.03 MB / 0.6905 GB, free: 26.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/1.125, allocations: 2.322 MB / 0.6928 GB, free: 25.71 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002727/1.128, allocations: 0.8558 MB / 0.6936 GB, free: 25.65 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002745/1.128, allocations: 94.72 kB / 0.6937 GB, free: 25.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/1.128, allocations: 0 / 0.6937 GB, free: 25.64 MB / 442.7 MB Notification: Performance of Templates: time 0.05807/1.186, allocations: 42.68 MB / 0.7354 GB, free: 13.46 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches