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") [: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 4.0.0+maint.om/package.mo): time 0.001554/0.001558, allocations: 182.5 kB / 8.132 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.144/1.144, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.0009872/0.0009872, allocations: 98.47 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.314e-06, allocations: 4 kB / 336.5 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1841, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.3021, allocations: 115.2 MB / 0.4903 GB, free: 3.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.3024, allocations: 91.92 kB / 0.4904 GB, free: 3.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2911/0.5935, allocations: 61.87 MB / 0.5508 GB, free: 56.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001616/0.5937, allocations: 86.36 kB / 0.5509 GB, free: 56.91 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.005015/0.5987, allocations: 3.016 MB / 0.5539 GB, free: 54.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.5988, allocations: 14 kB / 0.5539 GB, free: 54.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.6004, allocations: 494.4 kB / 0.5544 GB, free: 54.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003408/0.6038, allocations: 2.08 MB / 0.5564 GB, free: 52.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.604, allocations: 295.9 kB / 0.5567 GB, free: 52.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003215/0.6043, allocations: 171.9 kB / 0.5568 GB, free: 52.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003807/0.6081, allocations: 2.717 MB / 0.5595 GB, free: 49.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00424/0.6123, allocations: 3.222 MB / 0.5626 GB, free: 45.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.936e-05/0.6124, allocations: 7.984 kB / 0.5626 GB, free: 45.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.6127, allocations: 8 kB / 0.5627 GB, free: 45.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.638e-05/0.6127, allocations: 113.5 kB / 0.5628 GB, free: 45.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01457/0.6273, allocations: 11.5 MB / 0.574 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.6288, allocations: 1.196 MB / 0.5752 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/0.6302, allocations: 1.231 MB / 0.5764 GB, free: 31.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002558/0.6304, allocations: 134.4 kB / 0.5765 GB, free: 31.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001182/0.6316, allocations: 1.09 MB / 0.5776 GB, free: 30.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=156): time 2.935e-06/0.6316, allocations: 4 kB / 0.5776 GB, free: 30.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=180): time 0.01088/0.6425, allocations: 6.508 MB / 0.5839 GB, free: 23.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.6426, allocations: 308.7 kB / 0.5842 GB, free: 23.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.6444, allocations: 1.569 MB / 0.5857 GB, free: 21.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.6446, allocations: 37.69 kB / 0.5858 GB, free: 21.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005989/0.6452, allocations: 1.066 MB / 0.5868 GB, free: 20.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003282/0.6455, allocations: 0.5813 MB / 0.5874 GB, free: 19.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.6456, allocations: 4 kB / 0.5874 GB, free: 19.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.127e-05/0.6457, allocations: 386 kB / 0.5878 GB, free: 19.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.6469, allocations: 1.008 MB / 0.5887 GB, free: 18.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.6483, allocations: 1.535 MB / 0.5902 GB, free: 16.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.6497, allocations: 1.216 MB / 0.5914 GB, free: 15.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.6497, allocations: 4 kB / 0.5914 GB, free: 15.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004822/0.6546, allocations: 3.434 MB / 0.5948 GB, free: 12.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007525/0.6553, allocations: 5.341 MB / 0.6 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.6554, allocations: 19.94 kB / 0.6 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002851/0.6582, allocations: 1.182 MB / 0.6012 GB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/0.6598, allocations: 375.4 kB / 0.6015 GB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/0.6731, allocations: 13.24 MB / 0.6145 GB, free: 6.855 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/0.6754, allocations: 116 kB / 0.6146 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.6756, allocations: 79.98 kB / 0.6146 GB, free: 6.664 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/0.6756, allocations: 4 kB / 0.6146 GB, free: 6.66 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005362/0.681, allocations: 3.18 MB / 0.6178 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/0.681, allocations: 12.38 kB / 0.6178 GB, free: 3.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003021/0.684, allocations: 1.173 MB / 0.6189 GB, free: 2.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.6857, allocations: 371.4 kB / 0.6193 GB, free: 1.887 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01459/0.7003, allocations: 13.21 MB / 0.6322 GB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/0.7025, allocations: 103.9 kB / 0.6323 GB, free: 3.875 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002348/0.7028, allocations: 84.19 kB / 0.6323 GB, free: 3.793 MB / 410.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.0005007/0.7033, allocations: 179.5 kB / 0.6325 GB, free: 3.609 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004168/0.7037, allocations: 217.5 kB / 0.6327 GB, free: 3.395 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006499/0.7102, allocations: 3.286 MB / 0.6359 GB, free: 84 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.7103, allocations: 19.94 kB / 0.636 GB, free: 64 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.098e-06/0.7103, allocations: 4 kB / 0.636 GB, free: 60 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.7103, allocations: 7.969 kB / 0.636 GB, free: 52 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.7215, allocations: 6.191 MB / 0.642 GB, free: 9.742 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.7215, allocations: 8.312 kB / 0.642 GB, free: 9.734 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009656/0.7225, allocations: 199.7 kB / 0.6422 GB, free: 9.539 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00375/0.7262, allocations: 1.393 MB / 0.6436 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.7264, allocations: 23.97 kB / 0.6436 GB, free: 8.105 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1253/0.8517, allocations: 13.65 MB / 0.6569 GB, free: 132.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.8517, allocations: 3.344 kB / 0.6569 GB, free: 132.6 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006604/0.8583, allocations: 4.878 MB / 0.6617 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/0.8594, allocations: 0.5155 MB / 0.6622 GB, free: 131.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004261/0.8599, allocations: 23.98 kB / 0.6622 GB, free: 131.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.8614, allocations: 101.1 kB / 0.6623 GB, free: 131.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/0.8616, allocations: 125.1 kB / 0.6624 GB, free: 131.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.8618, allocations: 55.47 kB / 0.6625 GB, free: 131.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001544/0.8633, allocations: 1.178 MB / 0.6636 GB, free: 131.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00321/0.8665, allocations: 1.074 MB / 0.6647 GB, free: 131.8 MB / 426.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.0004757/0.867, allocations: 333.3 kB / 0.665 GB, free: 131.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007907/0.8749, allocations: 5.803 MB / 0.6707 GB, free: 130.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.875, allocations: 0 / 0.6707 GB, free: 130.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003198/0.8782, allocations: 2.138 MB / 0.6728 GB, free: 129.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.8804, allocations: 395 kB / 0.6731 GB, free: 129.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.8907, allocations: 5.197 MB / 0.6782 GB, free: 128.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001986/0.8927, allocations: 2.402 MB / 0.6806 GB, free: 127.8 MB / 426.7 MB Notification: Performance of SimCode: time 7.81e-07/0.8927, allocations: 2.781 kB / 0.6806 GB, free: 127.8 MB / 426.7 MB Notification: Performance of Templates: time 0.07079/0.9635, allocations: 49.7 MB / 0.7291 GB, free: 108.4 MB / 426.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