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.001478/0.001478, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.448/1.448, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008725/0.0008723, allocations: 90.05 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.219e-05/1.221e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09321, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3528/0.4461, allocations: 115.3 MB / 0.491 GB, free: 11.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003904/0.4465, allocations: 86.64 kB / 0.491 GB, free: 11.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3728/0.8194, allocations: 61.98 MB / 0.5516 GB, free: 96.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.8194, allocations: 0 / 0.5516 GB, free: 96.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002214/0.8196, allocations: 80.61 kB / 0.5516 GB, free: 96.66 MB / 426.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.007373/0.827, allocations: 3.017 MB / 0.5546 GB, free: 95.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.8271, allocations: 10.5 kB / 0.5546 GB, free: 95.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001955/0.829, allocations: 486.8 kB / 0.5551 GB, free: 95.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004061/0.8331, allocations: 2.068 MB / 0.5571 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.8333, allocations: 291.8 kB / 0.5574 GB, free: 94.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004103/0.8338, allocations: 171.9 kB / 0.5575 GB, free: 94.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005338/0.8391, allocations: 2.66 MB / 0.5601 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005736/0.8448, allocations: 3.178 MB / 0.5632 GB, free: 94.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.056e-05/0.8449, allocations: 5.172 kB / 0.5632 GB, free: 94.26 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/0.8452, allocations: 7.734 kB / 0.5632 GB, free: 94.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000152/0.8453, allocations: 114.4 kB / 0.5633 GB, free: 94.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01779/0.8631, allocations: 11.42 MB / 0.5745 GB, free: 91.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002188/0.8654, allocations: 2.714 MB / 0.5771 GB, free: 90.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.8665, allocations: 1.064 MB / 0.5782 GB, free: 90.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/0.8667, allocations: 136.7 kB / 0.5783 GB, free: 90.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001337/0.8681, allocations: 1.074 MB / 0.5794 GB, free: 89.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=156): time 3.516e-06/0.8681, allocations: 0 / 0.5794 GB, free: 89.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=180): time 0.01131/0.8794, allocations: 6.418 MB / 0.5856 GB, free: 87.99 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/0.8795, allocations: 308.4 kB / 0.5859 GB, free: 87.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.8815, allocations: 1.553 MB / 0.5874 GB, free: 86.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.8816, allocations: 33.05 kB / 0.5875 GB, free: 86.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008251/0.8824, allocations: 1.385 MB / 0.5888 GB, free: 85.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003312/0.8828, allocations: 0.5736 MB / 0.5894 GB, free: 85.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.992e-05/0.8829, allocations: 7.562 kB / 0.5894 GB, free: 85.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.743e-05/0.883, allocations: 386 kB / 0.5898 GB, free: 85.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.8841, allocations: 0.9597 MB / 0.5907 GB, free: 84.74 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.8854, allocations: 1.486 MB / 0.5922 GB, free: 83.74 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.8867, allocations: 1.176 MB / 0.5933 GB, free: 83.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.8867, allocations: 3.906 kB / 0.5933 GB, free: 83.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004482/0.8912, allocations: 3.351 MB / 0.5966 GB, free: 82.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008667/0.8921, allocations: 5.342 MB / 0.6018 GB, free: 76.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.8921, allocations: 15.78 kB / 0.6018 GB, free: 76.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002481/0.8946, allocations: 1.167 MB / 0.6029 GB, free: 76.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.8958, allocations: 378.3 kB / 0.6033 GB, free: 76.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.907, allocations: 14.02 MB / 0.617 GB, free: 65.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/0.9091, allocations: 132.5 kB / 0.6171 GB, free: 65.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.9092, allocations: 82.62 kB / 0.6172 GB, free: 65.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-06/0.9093, allocations: 6.281 kB / 0.6172 GB, free: 65.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004099/0.9134, allocations: 3.094 MB / 0.6202 GB, free: 64.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.9134, allocations: 13.59 kB / 0.6202 GB, free: 64.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/0.9157, allocations: 1.157 MB / 0.6214 GB, free: 64.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.9169, allocations: 379.8 kB / 0.6217 GB, free: 64.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/0.9279, allocations: 14.02 MB / 0.6354 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.9298, allocations: 120.3 kB / 0.6355 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.9299, allocations: 83.7 kB / 0.6356 GB, free: 54 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.0004311/0.9304, allocations: 181.7 kB / 0.6358 GB, free: 53.85 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.9307, allocations: 217 kB / 0.636 GB, free: 53.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004964/0.9357, allocations: 3.225 MB / 0.6392 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.9357, allocations: 17.34 kB / 0.6392 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.9357, allocations: 0 / 0.6392 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.9357, allocations: 13.69 kB / 0.6392 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008561/0.9443, allocations: 6.136 MB / 0.6452 GB, free: 48.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/0.9443, allocations: 4 kB / 0.6452 GB, free: 48.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008433/0.9452, allocations: 202.8 kB / 0.6454 GB, free: 47.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00303/0.9482, allocations: 1.391 MB / 0.6467 GB, free: 46.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.9483, allocations: 22.94 kB / 0.6468 GB, free: 46.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/0.9617, allocations: 14.19 MB / 0.6606 GB, free: 33.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.782e-06/0.9617, allocations: 11.94 kB / 0.6606 GB, free: 33.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005951/0.9677, allocations: 4.685 MB / 0.6652 GB, free: 29.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.9688, allocations: 0.5065 MB / 0.6657 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/0.9691, allocations: 22.84 kB / 0.6657 GB, free: 28.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.9704, allocations: 114.2 kB / 0.6658 GB, free: 28.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004205/0.9708, allocations: 231 kB / 0.666 GB, free: 28.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.9709, allocations: 54.94 kB / 0.6661 GB, free: 28.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001452/0.9724, allocations: 1.165 MB / 0.6672 GB, free: 27.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9724, allocations: 0 / 0.6672 GB, free: 27.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004137/0.9766, allocations: 1.098 MB / 0.6683 GB, free: 26.38 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.0006327/0.9772, allocations: 344.5 kB / 0.6686 GB, free: 26.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008054/0.9853, allocations: 5.958 MB / 0.6745 GB, free: 20.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/0.9853, allocations: 4.562 kB / 0.6745 GB, free: 20.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003373/0.9887, allocations: 2.317 MB / 0.6767 GB, free: 18.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.9912, allocations: 412.2 kB / 0.6771 GB, free: 18.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008628/0.9999, allocations: 5.045 MB / 0.682 GB, free: 13.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001675/1.002, allocations: 2.321 MB / 0.6843 GB, free: 11.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002586/1.004, allocations: 0.8503 MB / 0.6851 GB, free: 11.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/1.004, allocations: 98.62 kB / 0.6852 GB, free: 11.25 MB / 426.7 MB Notification: Performance of SimCode: time 8.11e-07/1.004, allocations: 0 / 0.6852 GB, free: 11.25 MB / 426.7 MB Notification: Performance of Templates: time 0.2926/1.297, allocations: 42.62 MB / 0.7268 GB, free: 99.27 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