Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|loadInductor.inductor.2..i|loadInductor.inductor.3..i|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|loadInductor.inductor.2..i|loadInductor.inductor.3..i|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001525/0.001525, allocations: 178.4 kB / 8.476 MB, free: 1.871 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.224/1.224, allocations: 205.2 MB / 214.1 MB, free: 5.184 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.0009248/0.0009248, allocations: 101.9 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.651e-06/5.671e-06, allocations: 0 / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06831/0.06833, allocations: 47.57 MB / 362.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2727/0.341, allocations: 120.4 MB / 483 MB, free: 4.938 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.3413, allocations: 86.69 kB / 483 MB, free: 4.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.2439/0.5852, allocations: 100.8 MB / 0.5702 GB, free: 6.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003198/0.5856, allocations: 107.9 kB / 0.5703 GB, free: 6.395 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: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.01156/0.5972, allocations: 4.215 MB / 0.5744 GB, free: 2.098 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.5972, allocations: 8.031 kB / 0.5744 GB, free: 2.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006033/0.6033, allocations: 0.974 MB / 0.5754 GB, free: 1.109 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1343/0.7376, allocations: 3.956 MB / 0.5792 GB, free: 121.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00027/0.7379, allocations: 346.5 kB / 0.5796 GB, free: 121.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007303/0.7386, allocations: 246.6 kB / 0.5798 GB, free: 121.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00651/0.7451, allocations: 3.999 MB / 0.5837 GB, free: 121.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006801/0.752, allocations: 4.675 MB / 0.5883 GB, free: 121.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.02e-05/0.7521, allocations: 11.66 kB / 0.5883 GB, free: 121.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003302/0.7524, allocations: 10.42 kB / 0.5883 GB, free: 121.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/0.7525, allocations: 169.5 kB / 0.5884 GB, free: 121.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02415/0.7767, allocations: 17.3 MB / 0.6053 GB, free: 117.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.7785, allocations: 1.542 MB / 0.6069 GB, free: 117.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002376/0.7809, allocations: 1.864 MB / 0.6087 GB, free: 117.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008542/0.7895, allocations: 5.719 MB / 0.6143 GB, free: 116.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001486/0.791, allocations: 1.348 MB / 0.6156 GB, free: 116.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=214): time 3.456e-06/0.791, allocations: 0 / 0.6156 GB, free: 116.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=247): time 0.0142/0.8052, allocations: 7.536 MB / 0.6229 GB, free: 115.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.886e-05/0.8053, allocations: 341.1 kB / 0.6233 GB, free: 114.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/0.8079, allocations: 1.834 MB / 0.625 GB, free: 114.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001794/0.808, allocations: 36.52 kB / 0.6251 GB, free: 114.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001077/0.8091, allocations: 1.506 MB / 0.6266 GB, free: 113.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005102/0.8096, allocations: 0.7964 MB / 0.6273 GB, free: 112.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.8098, allocations: 0 / 0.6273 GB, free: 112.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.8099, allocations: 413 kB / 0.6277 GB, free: 112.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001456/0.8114, allocations: 1.175 MB / 0.6289 GB, free: 112.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/0.8132, allocations: 1.936 MB / 0.6308 GB, free: 110.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/0.8153, allocations: 1.534 MB / 0.6323 GB, free: 110.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/0.8153, allocations: 3.562 kB / 0.6323 GB, free: 110.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=362) (initialization): time 0.006244/0.8216, allocations: 4.083 MB / 0.6363 GB, free: 108.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001258/0.8228, allocations: 8.272 MB / 0.6443 GB, free: 99.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/0.8229, allocations: 22.94 kB / 0.6444 GB, free: 99.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/0.8253, allocations: 1.035 MB / 0.6454 GB, free: 99.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/0.8273, allocations: 0.5295 MB / 0.6459 GB, free: 99.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.8383, allocations: 13.21 MB / 0.6588 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/0.8408, allocations: 116.1 kB / 0.6589 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.8411, allocations: 122 kB / 0.659 GB, free: 89.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.642e-06/0.8411, allocations: 3 kB / 0.659 GB, free: 89.27 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005471/0.8466, allocations: 3.773 MB / 0.6627 GB, free: 87.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.191e-05/0.8466, allocations: 22.34 kB / 0.6627 GB, free: 87.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002108/0.8487, allocations: 1.023 MB / 0.6637 GB, free: 87.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/0.8506, allocations: 0.52 MB / 0.6642 GB, free: 87.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/0.8616, allocations: 13.22 MB / 0.6771 GB, free: 77.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002444/0.8641, allocations: 104.8 kB / 0.6772 GB, free: 77.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004124/0.8645, allocations: 116.7 kB / 0.6773 GB, free: 77.6 MB / 426.7 MB 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[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[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: 90 * 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 (303): * Single equations (assignments): 296 * 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%) 23,(3,100.0%) 21,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007681/0.8653, allocations: 200.8 kB / 0.6775 GB, free: 77.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006362/0.8659, allocations: 273.8 kB / 0.6778 GB, free: 77.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007064/0.873, allocations: 3.542 MB / 0.6813 GB, free: 76.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.562e-05/0.873, allocations: 26.69 kB / 0.6813 GB, free: 76.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.567e-06/0.8731, allocations: 0 / 0.6813 GB, free: 76.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/0.8731, allocations: 11.39 kB / 0.6813 GB, free: 76.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/0.8856, allocations: 7.293 MB / 0.6884 GB, free: 70.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.8857, allocations: 7.719 kB / 0.6884 GB, free: 70.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/0.8872, allocations: 340.5 kB / 0.6887 GB, free: 69.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/0.8896, allocations: 1.059 MB / 0.6898 GB, free: 69.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002352/0.8899, allocations: 30.41 kB / 0.6898 GB, free: 69.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.9006, allocations: 10.95 MB / 0.7005 GB, free: 58.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.9007, allocations: 0 / 0.7005 GB, free: 58.61 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007611/0.9083, allocations: 5.236 MB / 0.7056 GB, free: 53.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.9099, allocations: 0.6203 MB / 0.7062 GB, free: 53.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008758/0.9108, allocations: 27.45 kB / 0.7062 GB, free: 53.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001938/0.9127, allocations: 99.92 kB / 0.7063 GB, free: 53.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/0.9131, allocations: 157.9 kB / 0.7065 GB, free: 53.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/0.9132, allocations: 63.36 kB / 0.7066 GB, free: 53.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002373/0.9156, allocations: 1.359 MB / 0.7079 GB, free: 51.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005338/0.921, allocations: 1.345 MB / 0.7092 GB, free: 50.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * 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 (186): * Single equations (assignments): 178 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {4 56,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005905/0.9216, allocations: 417.3 kB / 0.7096 GB, free: 50.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008874/0.9304, allocations: 6.521 MB / 0.716 GB, free: 43.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.9305, allocations: 3.938 kB / 0.716 GB, free: 43.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003003/0.9335, allocations: 2.072 MB / 0.718 GB, free: 42.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002843/0.9364, allocations: 481.3 kB / 0.7184 GB, free: 41.65 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01548/0.9519, allocations: 6.673 MB / 0.725 GB, free: 35.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003683/0.9556, allocations: 3.085 MB / 0.728 GB, free: 33.25 MB / 426.7 MB Notification: Performance of SimCode: time 8.11e-07/0.9556, allocations: 0 / 0.728 GB, free: 33.25 MB / 426.7 MB Notification: Performance of Templates: time 0.2227/1.178, allocations: 60.95 MB / 0.7875 GB, free: 103.9 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches