Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.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_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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.001211, allocations: 180.1 kB / 16.38 MB, free: 5.766 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.269/1.269, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 90.27 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002539/0.000254, allocations: 15.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2445, allocations: 50.39 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3252/0.5698, allocations: 116 MB / 0.5054 GB, free: 49.42 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.5701, allocations: 86.94 kB / 0.5055 GB, free: 49.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1404/0.7105, allocations: 62.68 MB / 0.5667 GB, free: 34.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.058e-06/0.7106, allocations: 3.938 kB / 0.5667 GB, free: 34.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002668/0.7108, allocations: 76.09 kB / 0.5667 GB, free: 34.83 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: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.009297/0.7201, allocations: 3.446 MB / 0.5701 GB, free: 32.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.7202, allocations: 12.03 kB / 0.5701 GB, free: 32.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002367/0.7226, allocations: 479.5 kB / 0.5706 GB, free: 32.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005418/0.728, allocations: 2.091 MB / 0.5726 GB, free: 30.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/0.7283, allocations: 388.7 kB / 0.573 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008939/0.7292, allocations: 277.8 kB / 0.5733 GB, free: 30.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005782/0.735, allocations: 3.661 MB / 0.5768 GB, free: 26.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.448e-05/0.7351, allocations: 4 kB / 0.5768 GB, free: 26.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/0.7354, allocations: 127.9 kB / 0.577 GB, free: 26.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-05/0.7355, allocations: 117.4 kB / 0.5771 GB, free: 26.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003997/0.7395, allocations: 2.934 MB / 0.5799 GB, free: 23.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01468/0.7542, allocations: 11.97 MB / 0.5916 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002502/0.7567, allocations: 2.863 MB / 0.5944 GB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002818/0.757, allocations: 142.4 kB / 0.5946 GB, free: 8.051 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001375/0.7584, allocations: 1.167 MB / 0.5957 GB, free: 6.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=156): time 3.387e-06/0.7584, allocations: 0 / 0.5957 GB, free: 6.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=179): time 0.01986/0.7783, allocations: 9.892 MB / 0.6054 GB, free: 12.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.7785, allocations: 316.7 kB / 0.6057 GB, free: 12.42 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003241/0.7818, allocations: 1.851 MB / 0.6075 GB, free: 10.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003481/0.7821, allocations: 65.69 kB / 0.6075 GB, free: 10.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/0.7835, allocations: 1.378 MB / 0.6089 GB, free: 9.082 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006/0.7841, allocations: 0.597 MB / 0.6095 GB, free: 8.477 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.7842, allocations: 40 kB / 0.6095 GB, free: 8.438 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.7844, allocations: 386 kB / 0.6099 GB, free: 8.055 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001708/0.7861, allocations: 1.05 MB / 0.6109 GB, free: 7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002024/0.7881, allocations: 1.596 MB / 0.6125 GB, free: 5.184 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/0.79, allocations: 1.255 MB / 0.6137 GB, free: 3.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.866e-05/0.79, allocations: 4 kB / 0.6137 GB, free: 3.926 MB / 394.7 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.006393/0.7964, allocations: 3.679 MB / 0.6173 GB, free: 216 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001908/0.7983, allocations: 5.411 MB / 0.6226 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.7984, allocations: 12 kB / 0.6226 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003121/0.8015, allocations: 1.196 MB / 0.6237 GB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/0.8031, allocations: 391.3 kB / 0.6241 GB, free: 8.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01569/0.8189, allocations: 14.86 MB / 0.6386 GB, free: 9.164 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002469/0.8214, allocations: 179.7 kB / 0.6388 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/0.8216, allocations: 79.98 kB / 0.6389 GB, free: 8.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.8216, allocations: 4 kB / 0.6389 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005499/0.8271, allocations: 3.414 MB / 0.6422 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.754e-05/0.8272, allocations: 20.03 kB / 0.6422 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002787/0.83, allocations: 1.197 MB / 0.6434 GB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.8315, allocations: 375.4 kB / 0.6438 GB, free: 3.863 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01567/0.8472, allocations: 14.82 MB / 0.6582 GB, free: 4.242 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/0.8501, allocations: 167.8 kB / 0.6584 GB, free: 4.078 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003865/0.8505, allocations: 79.98 kB / 0.6585 GB, free: 4 MB / 442.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 204 * 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 {(4,100.0%) 14,(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.002373/0.8529, allocations: 0.9755 MB / 0.6594 GB, free: 3.016 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007012/0.8536, allocations: 241.2 kB / 0.6596 GB, free: 2.777 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2282/1.082, allocations: 3.501 MB / 0.6631 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.049e-05/1.082, allocations: 28.05 kB / 0.6631 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/1.082, allocations: 1.625 kB / 0.6631 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-05/1.082, allocations: 7.594 kB / 0.6631 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/1.095, allocations: 6.744 MB / 0.6697 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/1.095, allocations: 3.094 kB / 0.6697 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008658/1.096, allocations: 200 kB / 0.6699 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003491/1.1, allocations: 1.435 MB / 0.6713 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/1.1, allocations: 46.39 kB / 0.6713 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01607/1.116, allocations: 15.23 MB / 0.6862 GB, free: 96.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/1.116, allocations: 9.625 kB / 0.6862 GB, free: 96.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007674/1.124, allocations: 4.968 MB / 0.6911 GB, free: 96.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/1.126, allocations: 0.5338 MB / 0.6916 GB, free: 96.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005381/1.126, allocations: 46.5 kB / 0.6916 GB, free: 96.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/1.128, allocations: 135.5 kB / 0.6917 GB, free: 96.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005703/1.128, allocations: 225.3 kB / 0.692 GB, free: 96.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/1.128, allocations: 49.34 kB / 0.692 GB, free: 96.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002403/1.131, allocations: 1.425 MB / 0.6934 GB, free: 96.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.1e-07/1.131, allocations: 0 / 0.6934 GB, free: 96.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005746/1.137, allocations: 1.27 MB / 0.6946 GB, free: 96.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 105 * 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.0008828/1.138, allocations: 334.5 kB / 0.695 GB, free: 95.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01072/1.148, allocations: 6.382 MB / 0.7012 GB, free: 93.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/1.148, allocations: 2.938 kB / 0.7012 GB, free: 93.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004075/1.152, allocations: 2.441 MB / 0.7036 GB, free: 92.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00331/1.156, allocations: 0.5239 MB / 0.7041 GB, free: 92.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/1.169, allocations: 7.333 MB / 0.7113 GB, free: 89.07 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002238/1.172, allocations: 2.318 MB / 0.7135 GB, free: 88.09 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002791/1.175, allocations: 0.6029 MB / 0.7141 GB, free: 88.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004785/1.175, allocations: 138.6 kB / 0.7142 GB, free: 88.02 MB / 442.7 MB Notification: Performance of SimCode: time 2.094e-06/1.175, allocations: 0 / 0.7142 GB, free: 88.02 MB / 442.7 MB Notification: Performance of Templates: time 0.08201/1.257, allocations: 47.81 MB / 0.7609 GB, free: 57.73 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches