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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001557/0.001557, allocations: 196.2 kB / 8.534 MB, free: 480 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 225.5 MB / 234.4 MB, free: 9.512 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000982/0.0009821, allocations: 93.17 kB / 286.3 MB, free: 5.859 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 7.023e-06/7.314e-06, allocations: 0 / 343.1 MB, free: 13.04 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2051, allocations: 51.45 MB / 394.6 MB, free: 47.37 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.3246, allocations: 116 MB / 0.4986 GB, free: 7.816 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.3249, allocations: 83.95 kB / 0.4987 GB, free: 7.734 MB / 386.8 MB Notification: Performance of FrontEnd: time 0.3022/0.6271, allocations: 61.98 MB / 0.5592 GB, free: 100.2 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.0002055/0.6274, allocations: 81.09 kB / 0.5593 GB, free: 100.2 MB / 418.8 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.006918/0.6343, allocations: 3.021 MB / 0.5623 GB, free: 98.92 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.6344, allocations: 10.34 kB / 0.5623 GB, free: 98.92 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002485/0.6368, allocations: 496.3 kB / 0.5628 GB, free: 98.73 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004998/0.6419, allocations: 2.091 MB / 0.5648 GB, free: 98.22 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002296/0.6421, allocations: 295.7 kB / 0.5651 GB, free: 98.02 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007429/0.6429, allocations: 170.9 kB / 0.5652 GB, free: 98.02 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005073/0.648, allocations: 2.719 MB / 0.5679 GB, free: 98 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004734/0.6527, allocations: 3.221 MB / 0.571 GB, free: 97.22 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-05/0.6528, allocations: 11.56 kB / 0.5711 GB, free: 97.21 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000228/0.653, allocations: 3.938 kB / 0.5711 GB, free: 97.21 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.781e-05/0.6532, allocations: 116.6 kB / 0.5712 GB, free: 97.2 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01733/0.6705, allocations: 11.49 MB / 0.5824 GB, free: 91.18 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.6723, allocations: 1.201 MB / 0.5836 GB, free: 90.73 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001718/0.674, allocations: 1.233 MB / 0.5848 GB, free: 90.31 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002961/0.6744, allocations: 135.4 kB / 0.5849 GB, free: 90.21 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001474/0.6758, allocations: 1.087 MB / 0.586 GB, free: 89.75 MB / 418.8 MB Notification: Performance of pre-optimization done (n=156): time 4.047e-06/0.6759, allocations: 0 / 0.586 GB, free: 89.75 MB / 418.8 MB Notification: Performance of matching and sorting (n=180): time 0.01279/0.6887, allocations: 6.518 MB / 0.5923 GB, free: 87.17 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.6888, allocations: 312.9 kB / 0.5926 GB, free: 86.82 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/0.6913, allocations: 1.572 MB / 0.5942 GB, free: 86.16 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001768/0.6915, allocations: 39.66 kB / 0.5942 GB, free: 86.13 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008755/0.6924, allocations: 1.067 MB / 0.5952 GB, free: 85.38 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004579/0.6929, allocations: 0.5728 MB / 0.5958 GB, free: 84.93 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.693, allocations: 0 / 0.5958 GB, free: 84.93 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.6932, allocations: 385.7 kB / 0.5962 GB, free: 84.59 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.6946, allocations: 1.004 MB / 0.5971 GB, free: 84.21 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.6961, allocations: 1.537 MB / 0.5986 GB, free: 82.6 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.6978, allocations: 1.216 MB / 0.5998 GB, free: 81.57 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.024e-06/0.6978, allocations: 4 kB / 0.5998 GB, free: 81.56 MB / 418.8 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.00545/0.7032, allocations: 3.44 MB / 0.6032 GB, free: 78.55 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009119/0.7042, allocations: 5.344 MB / 0.6084 GB, free: 72.79 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.7042, allocations: 12.56 kB / 0.6084 GB, free: 72.77 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00315/0.7074, allocations: 1.179 MB / 0.6096 GB, free: 71.83 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/0.7089, allocations: 379 kB / 0.6099 GB, free: 71.51 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.7209, allocations: 13.23 MB / 0.6229 GB, free: 58.35 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002572/0.7235, allocations: 116 kB / 0.623 GB, free: 58.23 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002558/0.7238, allocations: 84 kB / 0.6231 GB, free: 58.15 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.138e-06/0.7238, allocations: 4 kB / 0.6231 GB, free: 58.15 MB / 418.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004594/0.7284, allocations: 3.179 MB / 0.6262 GB, free: 54.96 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.7285, allocations: 12 kB / 0.6262 GB, free: 54.95 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002668/0.7311, allocations: 1.181 MB / 0.6273 GB, free: 53.76 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.7326, allocations: 359.4 kB / 0.6277 GB, free: 53.41 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.7441, allocations: 13.22 MB / 0.6406 GB, free: 39.52 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/0.7466, allocations: 112 kB / 0.6407 GB, free: 39.41 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/0.7468, allocations: 87.92 kB / 0.6408 GB, free: 39.33 MB / 418.8 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.0005195/0.7473, allocations: 180.9 kB / 0.6409 GB, free: 39.15 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004437/0.7478, allocations: 221.4 kB / 0.6412 GB, free: 38.93 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00551/0.7533, allocations: 3.29 MB / 0.6444 GB, free: 35.63 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-05/0.7534, allocations: 16.94 kB / 0.6444 GB, free: 35.61 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.7534, allocations: 0 / 0.6444 GB, free: 35.61 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/0.7534, allocations: 11.95 kB / 0.6444 GB, free: 35.6 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.7634, allocations: 6.186 MB / 0.6504 GB, free: 29.36 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.7635, allocations: 3.906 kB / 0.6504 GB, free: 29.35 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009017/0.7644, allocations: 203.7 kB / 0.6506 GB, free: 29.15 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003484/0.7679, allocations: 1.395 MB / 0.652 GB, free: 27.76 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.7681, allocations: 23.97 kB / 0.652 GB, free: 27.73 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/0.7819, allocations: 13.64 MB / 0.6653 GB, free: 13.52 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.625e-06/0.782, allocations: 7.938 kB / 0.6654 GB, free: 13.51 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006883/0.7888, allocations: 4.878 MB / 0.6701 GB, free: 8.492 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/0.7904, allocations: 0.51 MB / 0.6706 GB, free: 7.961 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005338/0.7909, allocations: 23.98 kB / 0.6706 GB, free: 7.938 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.7924, allocations: 99.89 kB / 0.6707 GB, free: 7.84 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/0.7927, allocations: 133.6 kB / 0.6709 GB, free: 7.711 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.7928, allocations: 55.97 kB / 0.6709 GB, free: 7.656 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.001683/0.7945, allocations: 1.179 MB / 0.6721 GB, free: 6.453 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.003909/0.7984, allocations: 1.082 MB / 0.6731 GB, free: 5.371 MB / 418.8 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.0005735/0.799, allocations: 331.1 kB / 0.6734 GB, free: 5.066 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.008467/0.8075, allocations: 5.802 MB / 0.6791 GB, free: 15.1 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.8076, allocations: 1.312 kB / 0.6791 GB, free: 15.1 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004218/0.8118, allocations: 2.136 MB / 0.6812 GB, free: 12.92 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/0.8145, allocations: 401.2 kB / 0.6816 GB, free: 12.54 MB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.8261, allocations: 5.201 MB / 0.6867 GB, free: 7.262 MB / 434.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002578/0.8287, allocations: 2.403 MB / 0.689 GB, free: 4.828 MB / 434.8 MB Notification: Performance of SimCode: time 2.625e-06/0.8287, allocations: 4 kB / 0.689 GB, free: 4.824 MB / 434.8 MB Notification: Performance of Templates: time 0.2034/1.032, allocations: 49.74 MB / 0.7376 GB, free: 156 MB / 450.8 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