Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 227.2 MB / 245 MB, free: 7.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007874/0.0007874, allocations: 97.06 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002229/0.000223, allocations: 8 kB / 357.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2235, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2848/0.5084, allocations: 123.5 MB / 0.5205 GB, free: 91.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.5086, allocations: 102.4 kB / 0.5206 GB, free: 91.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2389/0.7475, allocations: 106.1 MB / 0.6241 GB, free: 1.477 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7476, allocations: 0 / 0.6241 GB, free: 1.477 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004675/0.7481, allocations: 111.9 kB / 0.6242 GB, free: 1.367 MB / 394.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.01573/0.7638, allocations: 4.747 MB / 0.6289 GB, free: 12.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.7639, allocations: 8.031 kB / 0.6289 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005699/0.7696, allocations: 0.9739 MB / 0.6298 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01165/0.7813, allocations: 4 MB / 0.6337 GB, free: 7.461 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004748/0.7818, allocations: 482.5 kB / 0.6342 GB, free: 6.949 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/0.7832, allocations: 415.9 kB / 0.6346 GB, free: 6.543 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01271/0.7959, allocations: 5.306 MB / 0.6398 GB, free: 1.047 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001382/0.796, allocations: 3.906 kB / 0.6398 GB, free: 1.043 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008132/0.7969, allocations: 176 kB / 0.64 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/0.7971, allocations: 176.1 kB / 0.6401 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008838/0.8059, allocations: 4.327 MB / 0.6443 GB, free: 12.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03208/0.838, allocations: 17.99 MB / 0.6619 GB, free: 9.848 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007945/0.846, allocations: 8.519 MB / 0.6702 GB, free: 352 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2158/1.062, allocations: 5.242 MB / 0.6754 GB, free: 69.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/1.064, allocations: 1.301 MB / 0.6766 GB, free: 69.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=190): time 4.408e-06/1.064, allocations: 0 / 0.6766 GB, free: 69.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=223): time 0.01752/1.081, allocations: 9.203 MB / 0.6856 GB, free: 67.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.081, allocations: 340.9 kB / 0.6859 GB, free: 67.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003363/1.085, allocations: 2.173 MB / 0.6881 GB, free: 67.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003401/1.085, allocations: 76.66 kB / 0.6881 GB, free: 67.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/1.087, allocations: 1.927 MB / 0.69 GB, free: 66.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007121/1.087, allocations: 0.7402 MB / 0.6907 GB, free: 66.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/1.087, allocations: 51.16 kB / 0.6908 GB, free: 66.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/1.088, allocations: 414.4 kB / 0.6912 GB, free: 65.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/1.089, allocations: 1.139 MB / 0.6923 GB, free: 65.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/1.091, allocations: 1.878 MB / 0.6941 GB, free: 65.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/1.093, allocations: 1.41 MB / 0.6955 GB, free: 65.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/1.093, allocations: 5.531 kB / 0.6955 GB, free: 65.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.006139/1.099, allocations: 4.214 MB / 0.6996 GB, free: 64.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001389/1.101, allocations: 8.013 MB / 0.7074 GB, free: 56.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/1.101, allocations: 21.62 kB / 0.7075 GB, free: 56.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002382/1.103, allocations: 1.058 MB / 0.7085 GB, free: 56.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001813/1.105, allocations: 482.7 kB / 0.709 GB, free: 56.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/1.118, allocations: 14.82 MB / 0.7234 GB, free: 48.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003082/1.121, allocations: 177.3 kB / 0.7236 GB, free: 48.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003782/1.121, allocations: 110.9 kB / 0.7237 GB, free: 48.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/1.121, allocations: 3.438 kB / 0.7237 GB, free: 48.09 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005813/1.127, allocations: 3.906 MB / 0.7275 GB, free: 47.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-05/1.127, allocations: 26.67 kB / 0.7275 GB, free: 47.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002108/1.129, allocations: 1.046 MB / 0.7286 GB, free: 47.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/1.131, allocations: 474.4 kB / 0.729 GB, free: 47.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/1.143, allocations: 14.8 MB / 0.7435 GB, free: 36.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/1.146, allocations: 157.7 kB / 0.7436 GB, free: 36.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003418/1.146, allocations: 107 kB / 0.7437 GB, free: 36.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition1,$whenCondition4,$whenCondition3,$whenCondition2,$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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (273): * Single equations (assignments): 266 * 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%) 22,(3,100.0%) 24,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002727/1.149, allocations: 1.35 MB / 0.745 GB, free: 35.87 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006966/1.15, allocations: 288.7 kB / 0.7453 GB, free: 35.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005562/1.155, allocations: 3.506 MB / 0.7487 GB, free: 34.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/1.155, allocations: 25.39 kB / 0.7488 GB, free: 34.35 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.155, allocations: 0 / 0.7488 GB, free: 34.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/1.155, allocations: 10.22 kB / 0.7488 GB, free: 34.35 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/1.166, allocations: 7.45 MB / 0.7561 GB, free: 31.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/1.166, allocations: 0 / 0.7561 GB, free: 31.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/1.167, allocations: 304.2 kB / 0.7563 GB, free: 31.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002333/1.169, allocations: 1.086 MB / 0.7574 GB, free: 30.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/1.169, allocations: 64.02 kB / 0.7575 GB, free: 30.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/1.181, allocations: 12.44 MB / 0.7696 GB, free: 22.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/1.181, allocations: 3.094 kB / 0.7696 GB, free: 22.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006743/1.188, allocations: 5.003 MB / 0.7745 GB, free: 20.05 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001306/1.189, allocations: 0.6138 MB / 0.7751 GB, free: 19.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003445/1.19, allocations: 63.44 kB / 0.7752 GB, free: 19.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/1.191, allocations: 128.8 kB / 0.7753 GB, free: 19.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004184/1.191, allocations: 247.1 kB / 0.7755 GB, free: 19.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/1.192, allocations: 63.53 kB / 0.7756 GB, free: 19.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002145/1.194, allocations: 1.663 MB / 0.7772 GB, free: 18.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.194, allocations: 3.469 kB / 0.7772 GB, free: 18.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004959/1.199, allocations: 1.553 MB / 0.7787 GB, free: 18.72 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 151 * 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 {3 59,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006245/1.199, allocations: 436.6 kB / 0.7791 GB, free: 18.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00845/1.208, allocations: 6.741 MB / 0.7857 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/1.208, allocations: 4.062 kB / 0.7857 GB, free: 14.33 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002912/1.211, allocations: 2.235 MB / 0.7879 GB, free: 12.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/1.214, allocations: 0.6313 MB / 0.7885 GB, free: 11.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/1.228, allocations: 9.475 MB / 0.7978 GB, free: 3.172 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002221/1.23, allocations: 2.919 MB / 0.8006 GB, free: 0.9375 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002747/1.233, allocations: 0.7069 MB / 0.8013 GB, free: 472 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004977/1.233, allocations: 187 kB / 0.8015 GB, free: 292 kB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/1.233, allocations: 0 / 0.8015 GB, free: 292 kB / 442.7 MB Notification: Performance of Templates: time 0.2723/1.505, allocations: 52.99 MB / 0.8532 GB, free: 91.38 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches