Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 112.2 kB / 17.07 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 198.8 kB / 18 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 47.94 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2467, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007325/0.254, allocations: 6.207 MB / 406.9 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004125/0.2582, allocations: 2.134 MB / 409.1 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.2592, allocations: 19.94 kB / 409.1 MB, free: 472 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002097/0.2614, allocations: 0.7578 MB / 409.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002128/0.2635, allocations: 0.765 MB / 410.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.2647, allocations: 497.8 kB / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00153/0.2662, allocations: 1.179 MB / 412.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.2676, allocations: 0.8315 MB / 413.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006276/0.2683, allocations: 466.3 kB / 413.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005976/0.2689, allocations: 0.5328 MB / 414.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.269, allocations: 116 kB / 414.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004901/0.2695, allocations: 267.8 kB / 414.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002105/0.2697, allocations: 243.1 kB / 414.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004666/0.2702, allocations: 0.5365 MB / 415.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.2716, allocations: 1.456 MB / 416.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2716, allocations: 0 / 416.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2716, allocations: 0 / 416.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.2716, allocations: 4 kB / 416.7 MB, free: 8.793 MB / 334.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.002705/0.2743, allocations: 1.419 MB / 418.1 MB, free: 7.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.2743, allocations: 12.02 kB / 418.1 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002162/0.2765, allocations: 371.3 kB / 418.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007962/0.2773, allocations: 0.5616 MB / 419.1 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.6e-05/0.2774, allocations: 74.38 kB / 419.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.2775, allocations: 100.4 kB / 419.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/0.2792, allocations: 1.024 MB / 420.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/0.2792, allocations: 0 / 420.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.444e-05/0.2793, allocations: 40 kB / 420.3 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.693e-05/0.2794, allocations: 28 kB / 420.3 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.281, allocations: 0.8472 MB / 421.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004777/0.2858, allocations: 3.507 MB / 424.7 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.2879, allocations: 1.91 MB / 426.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008671/0.2888, allocations: 463.4 kB / 427 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.2889, allocations: 101.7 kB / 427.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008046/0.2897, allocations: 496.9 kB / 427.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 4.629e-06/0.2898, allocations: 0 / 427.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.00427/0.294, allocations: 1.69 MB / 429.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.079e-05/0.2941, allocations: 192.9 kB / 429.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004838/0.2946, allocations: 457.8 kB / 430 MB, free: 10.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.385e-05/0.2947, allocations: 45.69 kB / 430 MB, free: 10.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.295, allocations: 419.6 kB / 430.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.2952, allocations: 268.1 kB / 430.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/0.2954, allocations: 154.6 kB / 430.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.2955, allocations: 374.8 kB / 431.2 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005281/0.2961, allocations: 265.9 kB / 431.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006851/0.2968, allocations: 491.2 kB / 431.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.298, allocations: 0.7396 MB / 432.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.309e-06/0.298, allocations: 0 / 432.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001882/0.2999, allocations: 1.041 MB / 433.7 MB, free: 6.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.2999, allocations: 11.94 kB / 433.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.2999, allocations: 4 kB / 433.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008816/0.3008, allocations: 270.8 kB / 434 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005427/0.3014, allocations: 143.8 kB / 434.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00545/0.3068, allocations: 4.854 MB / 439 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00059/0.3074, allocations: 99.25 kB / 439.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.85e-05/0.3075, allocations: 36 kB / 439.1 MB, free: 1.215 MB / 350.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.0003555/0.3079, allocations: 238.3 kB / 439.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.308, allocations: 67.25 kB / 439.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.31, allocations: 0.9708 MB / 440.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.31, allocations: 12 kB / 440.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.31, allocations: 0 / 440.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.31, allocations: 3.984 kB / 440.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002965/0.313, allocations: 1.905 MB / 442.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.313, allocations: 64 / 442.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004262/0.3134, allocations: 103.9 kB / 442.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007575/0.3142, allocations: 268.6 kB / 442.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.076e-05/0.3143, allocations: 20 kB / 442.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004978/0.3192, allocations: 4.795 MB / 447.5 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.3193, allocations: 11.91 kB / 447.5 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.3216, allocations: 1.373 MB / 448.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002591/0.3219, allocations: 212 kB / 449.1 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/0.322, allocations: 20 kB / 449.1 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.3224, allocations: 39.97 kB / 449.1 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.3226, allocations: 72.89 kB / 449.2 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.871e-05/0.3227, allocations: 31.88 kB / 449.2 MB, free: 6.672 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003258/0.323, allocations: 310.9 kB / 449.5 MB, free: 6.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.323, allocations: 0 / 449.5 MB, free: 6.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009618/0.324, allocations: 303.2 kB / 449.8 MB, free: 6.074 MB / 366.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.0002487/0.3242, allocations: 163.9 kB / 450 MB, free: 5.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.326, allocations: 1.084 MB / 451.1 MB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3261, allocations: 0 / 451.1 MB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.3271, allocations: 0.7402 MB / 451.8 MB, free: 4.031 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000592/0.3278, allocations: 122.2 kB / 451.9 MB, free: 3.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/0.3304, allocations: 1.628 MB / 453.6 MB, free: 2.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.3309, allocations: 0.9903 MB / 454.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002842/0.3312, allocations: 85.33 kB / 454.6 MB, free: 1.145 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.3314, allocations: 51.42 kB / 454.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3314, allocations: 0 / 454.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of Templates: time 0.01951/0.3509, allocations: 12.54 MB / 467.2 MB, free: 4.691 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches