Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo): time 0.001521/0.001521, allocations: 183.7 kB / 8.48 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.143/1.143, allocations: 205.2 MB / 214.1 MB, free: 5.504 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008552/0.0008551, allocations: 87.61 kB / 262.1 MB, free: 5.555 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.113e-06/7.143e-06, allocations: 0 / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06575/0.06577, allocations: 47.58 MB / 362.5 MB, free: 9.996 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.2965, allocations: 114.9 MB / 477.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.2967, allocations: 80.89 kB / 477.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1638/0.4605, allocations: 61.6 MB / 0.5265 GB, free: 3.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001976/0.4607, allocations: 79.88 kB / 0.5265 GB, free: 3.805 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.006418/0.4672, allocations: 3.014 MB / 0.5295 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.4672, allocations: 8.031 kB / 0.5295 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001936/0.4692, allocations: 491.5 kB / 0.53 GB, free: 236 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004622/0.4738, allocations: 2.092 MB / 0.532 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.4741, allocations: 287.9 kB / 0.5323 GB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004754/0.4746, allocations: 179.9 kB / 0.5324 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005045/0.4796, allocations: 2.725 MB / 0.5351 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005326/0.485, allocations: 3.223 MB / 0.5382 GB, free: 7.484 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.462e-05/0.4851, allocations: 19.83 kB / 0.5383 GB, free: 7.465 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002355/0.4853, allocations: 4 kB / 0.5383 GB, free: 7.461 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/0.4854, allocations: 109.5 kB / 0.5384 GB, free: 7.352 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01838/0.5038, allocations: 11.5 MB / 0.5496 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.5056, allocations: 1.205 MB / 0.5508 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001655/0.5073, allocations: 1.226 MB / 0.552 GB, free: 9.082 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003025/0.5076, allocations: 134.4 kB / 0.5521 GB, free: 8.934 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001471/0.509, allocations: 1.094 MB / 0.5532 GB, free: 7.797 MB / 410.7 MB Notification: Performance of pre-optimization done (n=156): time 5.44e-06/0.5091, allocations: 0 / 0.5532 GB, free: 7.797 MB / 410.7 MB Notification: Performance of matching and sorting (n=180): time 0.01293/0.522, allocations: 6.499 MB / 0.5595 GB, free: 1.234 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.5222, allocations: 312.7 kB / 0.5598 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002449/0.5246, allocations: 1.574 MB / 0.5614 GB, free: 15.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.5248, allocations: 41.69 kB / 0.5614 GB, free: 15.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008401/0.5257, allocations: 1.066 MB / 0.5624 GB, free: 14.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005088/0.5262, allocations: 0.5813 MB / 0.563 GB, free: 13.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.5263, allocations: 0 / 0.563 GB, free: 13.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.5264, allocations: 382 kB / 0.5634 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.5279, allocations: 1.008 MB / 0.5644 GB, free: 12.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001769/0.5297, allocations: 1.534 MB / 0.5659 GB, free: 10.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.5314, allocations: 1.216 MB / 0.567 GB, free: 9.168 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.697e-06/0.5314, allocations: 7.906 kB / 0.567 GB, free: 9.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005731/0.5372, allocations: 3.43 MB / 0.5704 GB, free: 5.695 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1033/0.6404, allocations: 5.341 MB / 0.5756 GB, free: 150.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.873e-05/0.6405, allocations: 13.31 kB / 0.5756 GB, free: 150.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002924/0.6434, allocations: 1.181 MB / 0.5768 GB, free: 150.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/0.6451, allocations: 377.9 kB / 0.5771 GB, free: 150.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/0.6561, allocations: 13.22 MB / 0.59 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/0.6583, allocations: 116.4 kB / 0.5902 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.6584, allocations: 79.64 kB / 0.5902 GB, free: 143.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.72e-06/0.6585, allocations: 3.969 kB / 0.5902 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004431/0.6629, allocations: 3.182 MB / 0.5933 GB, free: 143.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.6629, allocations: 19.31 kB / 0.5934 GB, free: 143.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002598/0.6655, allocations: 1.17 MB / 0.5945 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.667, allocations: 369.5 kB / 0.5949 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.6778, allocations: 13.22 MB / 0.6078 GB, free: 136.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/0.6799, allocations: 106.1 kB / 0.6079 GB, free: 136.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.6801, allocations: 83.19 kB / 0.6079 GB, free: 136.2 MB / 426.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.0004491/0.6806, allocations: 182.9 kB / 0.6081 GB, free: 136.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003307/0.6809, allocations: 218.1 kB / 0.6083 GB, free: 136 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005448/0.6864, allocations: 3.305 MB / 0.6116 GB, free: 135.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.6864, allocations: 14.97 kB / 0.6116 GB, free: 135.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.6864, allocations: 2.344 kB / 0.6116 GB, free: 135.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.6864, allocations: 9.984 kB / 0.6116 GB, free: 135.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008985/0.6954, allocations: 6.189 MB / 0.6176 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.6955, allocations: 3.875 kB / 0.6176 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009033/0.6964, allocations: 198.3 kB / 0.6178 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003361/0.6997, allocations: 1.393 MB / 0.6192 GB, free: 135.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/0.6999, allocations: 29.47 kB / 0.6192 GB, free: 135.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01336/0.7133, allocations: 13.64 MB / 0.6325 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.7133, allocations: 6.844 kB / 0.6325 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006411/0.7197, allocations: 4.865 MB / 0.6373 GB, free: 124.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.7209, allocations: 0.5143 MB / 0.6378 GB, free: 124.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000427/0.7214, allocations: 29.45 kB / 0.6378 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/0.7229, allocations: 99.12 kB / 0.6379 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.7232, allocations: 123 kB / 0.638 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001743/0.7234, allocations: 53.3 kB / 0.6381 GB, free: 124.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001711/0.7251, allocations: 1.185 MB / 0.6392 GB, free: 123.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003295/0.7284, allocations: 1.082 MB / 0.6403 GB, free: 123.9 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.0004659/0.7289, allocations: 325.3 kB / 0.6406 GB, free: 123.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007591/0.7365, allocations: 5.794 MB / 0.6463 GB, free: 120.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7365, allocations: 4 kB / 0.6463 GB, free: 120.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003051/0.7395, allocations: 2.141 MB / 0.6484 GB, free: 118.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001916/0.7415, allocations: 395.8 kB / 0.6487 GB, free: 118.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00935/0.7508, allocations: 5.194 MB / 0.6538 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/0.7528, allocations: 2.416 MB / 0.6562 GB, free: 112.2 MB / 426.7 MB Notification: Performance of SimCode: time 7.41e-07/0.7528, allocations: 0 / 0.6562 GB, free: 112.2 MB / 426.7 MB Notification: Performance of Templates: time 0.06657/0.8194, allocations: 49.7 MB / 0.7047 GB, free: 71.71 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches