Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008222/0.0008223, allocations: 93.94 kB / 17 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009092/0.0009093, allocations: 193.3 kB / 17.9 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002623/0.0002624, allocations: 8 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1158, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier): time 0.01296/0.1288, allocations: 10.6 MB / 369.2 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.264/0.3929, allocations: 6.245 MB / 375.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.3951, allocations: 55.38 kB / 375.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002729/0.3979, allocations: 0.7084 MB / 376.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003499/0.4014, allocations: 0.8107 MB / 377.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005444/0.4068, allocations: 1.408 MB / 378.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006737/0.4136, allocations: 3.463 MB / 381.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002746/0.4164, allocations: 1.427 MB / 383.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.4198, allocations: 1.119 MB / 384.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003219/0.423, allocations: 1.406 MB / 385.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004578/0.4235, allocations: 152.8 kB / 386 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.425, allocations: 350 kB / 386.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009424/0.426, allocations: 0.7368 MB / 387.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.4271, allocations: 0.5739 MB / 387.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00417/0.4313, allocations: 3.735 MB / 391.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.4313, allocations: 0 / 391.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.4313, allocations: 0 / 391.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001367/0.4315, allocations: 0 / 391.4 MB, free: 5.266 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 617 * Number of variables: 617 Notification: Performance of Generate backend data structure: time 0.007629/0.4391, allocations: 2.96 MB / 394.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.4391, allocations: 12.92 kB / 394.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.4408, allocations: 431.3 kB / 394.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003302/0.4442, allocations: 1.649 MB / 396.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.4443, allocations: 179 kB / 396.6 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004036/0.4447, allocations: 248.1 kB / 396.9 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005601/0.4503, allocations: 3.059 MB / 399.9 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.255e-05/0.4504, allocations: 2.125 kB / 399.9 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.4507, allocations: 98.06 kB / 400 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.4508, allocations: 103.4 kB / 400.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004441/0.4552, allocations: 2.528 MB / 402.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01728/0.4725, allocations: 10.31 MB / 413 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003489/0.4761, allocations: 2.722 MB / 415.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.4781, allocations: 1.225 MB / 416.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002724/0.4784, allocations: 134.9 kB / 417 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.605e-05/0.4784, allocations: 55.81 kB / 417.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=149): time 3.767e-06/0.4784, allocations: 0 / 417.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.0175/0.4959, allocations: 8.073 MB / 425.2 MB, free: 7.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.4961, allocations: 201.2 kB / 425.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002889/0.499, allocations: 1.862 MB / 427.2 MB, free: 5.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.4991, allocations: 53.7 kB / 427.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008568/0.5, allocations: 1.166 MB / 428.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004865/0.5005, allocations: 0.5628 MB / 429 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.5006, allocations: 40 kB / 429.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.5008, allocations: 381.9 kB / 429.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.5021, allocations: 0.855 MB / 430.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.5038, allocations: 1.323 MB / 431.6 MB, free: 492 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.5055, allocations: 1.05 MB / 432.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.168e-06/0.5055, allocations: 10.08 kB / 432.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.005574/0.5111, allocations: 3.137 MB / 435.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004415/0.5115, allocations: 462.9 kB / 436.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.542e-05/0.5116, allocations: 12 kB / 436.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001975/0.5136, allocations: 0.8035 MB / 437.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.5149, allocations: 359.4 kB / 437.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/0.5272, allocations: 11.83 MB / 449.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/0.5293, allocations: 119.7 kB / 449.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002172/0.5295, allocations: 68 kB / 449.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.898e-06/0.5295, allocations: 4 kB / 449.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004548/0.5341, allocations: 2.911 MB / 452.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.868e-05/0.5341, allocations: 15.39 kB / 452.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001777/0.5359, allocations: 0.7923 MB / 453.2 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.5372, allocations: 363.4 kB / 453.5 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.5491, allocations: 11.83 MB / 465.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/0.5514, allocations: 99.86 kB / 465.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.5515, allocations: 75.95 kB / 465.5 MB, free: 12.99 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 183 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 2 {(3,100.0%) 16,(1,100.0%) 6} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.002052/0.5536, allocations: 0.8028 MB / 466.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005385/0.5541, allocations: 221.4 kB / 466.5 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004954/0.5591, allocations: 2.857 MB / 469.4 MB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.5591, allocations: 16 kB / 469.4 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.5592, allocations: 4 kB / 469.4 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.5592, allocations: 7.969 kB / 469.4 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.5694, allocations: 5.697 MB / 475.1 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.5694, allocations: 4 kB / 475.1 MB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009519/0.5704, allocations: 235.7 kB / 475.3 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.5726, allocations: 0.8394 MB / 476.2 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.5727, allocations: 39.98 kB / 476.2 MB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/0.5877, allocations: 13.3 MB / 489.5 MB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.5877, allocations: 4 kB / 489.5 MB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006449/0.5942, allocations: 4.045 MB / 493.6 MB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.5954, allocations: 482.2 kB / 494 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003035/0.5957, allocations: 43.98 kB / 494.1 MB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.5968, allocations: 99.91 kB / 494.2 MB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.5971, allocations: 137 kB / 494.3 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.626e-05/0.5972, allocations: 47.98 kB / 494.4 MB, free: 15.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001913/0.5991, allocations: 1.266 MB / 495.6 MB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5991, allocations: 0 / 495.6 MB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00388/0.603, allocations: 1.078 MB / 496.7 MB, free: 12.67 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (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,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00051/0.6035, allocations: 215.7 kB / 496.9 MB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00837/0.6119, allocations: 5.273 MB / 0.4904 GB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.6119, allocations: 0 / 0.4904 GB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003135/0.6151, allocations: 2.079 MB / 0.4924 GB, free: 4.863 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002947/0.618, allocations: 0.5707 MB / 0.493 GB, free: 4.297 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.6288, allocations: 6.572 MB / 0.4994 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/0.631, allocations: 1.973 MB / 0.5013 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001827/0.6328, allocations: 0.5012 MB / 0.5018 GB, free: 11.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003557/0.6332, allocations: 123.4 kB / 0.502 GB, free: 11.03 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6332, allocations: 0 / 0.502 GB, free: 11.03 MB / 430.1 MB Notification: Performance of Templates: time 0.2641/0.8973, allocations: 39.85 MB / 0.5409 GB, free: 132.6 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Rectifier/SMEE_Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches