Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 117.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001752/0.001752, allocations: 215.7 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.507/1.507, allocations: 230.4 MB / 250 MB, free: 9.059 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002977/0.002977, allocations: 67.83 kB / 367.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2642, allocations: 53.31 MB / 420.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008425/0.2726, allocations: 6.311 MB / 427 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005294/0.2779, allocations: 2.246 MB / 429.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006786/0.2786, allocations: 16 kB / 429.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0023/0.2809, allocations: 0.7539 MB / 430 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002044/0.2829, allocations: 0.6116 MB / 430.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.2841, allocations: 0.526 MB / 431.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.2854, allocations: 1.187 MB / 432.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.2865, allocations: 0.6792 MB / 433 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006229/0.2871, allocations: 470.3 kB / 433.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006784/0.2878, allocations: 0.5445 MB / 434 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.288, allocations: 108 kB / 434.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006457/0.2886, allocations: 287.8 kB / 434.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000236/0.2889, allocations: 255.1 kB / 434.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005446/0.2894, allocations: 0.5441 MB / 435.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.2912, allocations: 1.494 MB / 436.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2912, allocations: 0 / 436.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2912, allocations: 0 / 436.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.2912, allocations: 4 kB / 436.7 MB, free: 8.285 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.003135/0.2944, allocations: 1.473 MB / 438.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.2944, allocations: 12.03 kB / 438.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002539/0.297, allocations: 407.9 kB / 438.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009312/0.2979, allocations: 0.5854 MB / 439.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.03e-05/0.298, allocations: 74.38 kB / 439.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.2981, allocations: 100.4 kB / 439.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/0.3, allocations: 1.024 MB / 440.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.3, allocations: 3.953 kB / 440.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.361e-05/0.3001, allocations: 40 kB / 440.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.3001, allocations: 27.98 kB / 440.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/0.3019, allocations: 0.855 MB / 441.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005445/0.3073, allocations: 3.606 MB / 444.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.3097, allocations: 1.825 MB / 446.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009431/0.3107, allocations: 418 kB / 447.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001959/0.3109, allocations: 182.8 kB / 447.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000892/0.3118, allocations: 496.8 kB / 447.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 2.294e-06/0.3118, allocations: 0 / 447.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=84): time 0.004618/0.3164, allocations: 1.671 MB / 449.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.3165, allocations: 200.9 kB / 449.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005898/0.3171, allocations: 478 kB / 450.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.764e-05/0.3172, allocations: 41.7 kB / 450.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/0.3175, allocations: 432.7 kB / 450.6 MB, free: 9.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.3177, allocations: 289.5 kB / 450.8 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002645/0.318, allocations: 158.6 kB / 451 MB, free: 9.211 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.3182, allocations: 370.8 kB / 451.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005939/0.3188, allocations: 273.8 kB / 451.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007626/0.3196, allocations: 483.2 kB / 452.1 MB, free: 8.008 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.3209, allocations: 0.7474 MB / 452.8 MB, free: 7.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3209, allocations: 4 kB / 452.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002124/0.323, allocations: 1.025 MB / 453.9 MB, free: 6.148 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.323, allocations: 8.188 kB / 453.9 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.323, allocations: 15.94 kB / 453.9 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009139/0.3239, allocations: 270.8 kB / 454.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005754/0.3245, allocations: 143.8 kB / 454.3 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006199/0.3307, allocations: 4.855 MB / 459.2 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006286/0.3313, allocations: 103.4 kB / 459.3 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.146e-05/0.3314, allocations: 32 kB / 459.3 MB, free: 464 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004209/0.3318, allocations: 254.5 kB / 459.5 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.3319, allocations: 71.58 kB / 459.6 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.3341, allocations: 0.9515 MB / 460.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.3341, allocations: 8 kB / 460.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3342, allocations: 4.062 kB / 460.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3342, allocations: 7.984 kB / 460.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003376/0.3375, allocations: 1.906 MB / 462.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3375, allocations: 192 / 462.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004554/0.338, allocations: 91.88 kB / 462.6 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008498/0.3388, allocations: 273.4 kB / 462.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.866e-05/0.3389, allocations: 23.98 kB / 462.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006029/0.3449, allocations: 4.809 MB / 467.7 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.3449, allocations: 7.969 kB / 467.7 MB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.3477, allocations: 1.362 MB / 469 MB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.3481, allocations: 216.4 kB / 469.3 MB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.3482, allocations: 20 kB / 469.3 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.3487, allocations: 43.97 kB / 469.3 MB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.3489, allocations: 64.91 kB / 469.4 MB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-05/0.3489, allocations: 31.92 kB / 469.4 MB, free: 5.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004561/0.3494, allocations: 322.9 kB / 469.7 MB, free: 5.598 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3494, allocations: 0 / 469.7 MB, free: 5.598 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001245/0.3506, allocations: 323.3 kB / 470 MB, free: 5.281 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003109/0.3509, allocations: 167.2 kB / 470.2 MB, free: 5.105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.353, allocations: 1.048 MB / 471.3 MB, free: 4.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.353, allocations: 1.438 kB / 471.3 MB, free: 4.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.3542, allocations: 0.7079 MB / 472 MB, free: 3.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006555/0.3549, allocations: 118 kB / 472.1 MB, free: 3.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.358, allocations: 1.679 MB / 473.8 MB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006719/0.3587, allocations: 0.9943 MB / 474.8 MB, free: 460 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003207/0.359, allocations: 89.42 kB / 474.8 MB, free: 368 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.3591, allocations: 51.42 kB / 474.9 MB, free: 316 kB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3591, allocations: 0 / 474.9 MB, free: 316 kB / 382.1 MB Notification: Performance of Templates: time 0.02367/0.3828, allocations: 12.87 MB / 487.8 MB, free: 3.578 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches