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.001327/0.001327, allocations: 111 kB / 17.74 MB, free: 5.34 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.001504/0.001504, allocations: 192.3 kB / 18.67 MB, free: 4.414 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.418/1.418, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 43.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2559, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006781/0.2628, allocations: 6.224 MB / 407.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003614/0.2664, allocations: 2.125 MB / 409.8 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004452/0.2669, allocations: 16 kB / 409.8 MB, free: 484 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001764/0.2687, allocations: 0.7683 MB / 410.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00155/0.2702, allocations: 0.7572 MB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009072/0.2712, allocations: 494.8 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001156/0.2723, allocations: 1.179 MB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.2734, allocations: 0.8288 MB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005134/0.274, allocations: 458.3 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006294/0.2746, allocations: 0.5406 MB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.2748, allocations: 112 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005174/0.2753, allocations: 263.9 kB / 415.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.2755, allocations: 255.1 kB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004163/0.2759, allocations: 0.5325 MB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001338/0.2772, allocations: 1.452 MB / 417.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2773, allocations: 0 / 417.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.2773, allocations: 0 / 417.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.2773, allocations: 7.938 kB / 417.4 MB, free: 8.809 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.002831/0.2801, allocations: 1.417 MB / 418.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2802, allocations: 8.031 kB / 418.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00229/0.2825, allocations: 375.3 kB / 419.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008716/0.2834, allocations: 0.5616 MB / 419.7 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.515e-05/0.2834, allocations: 74.38 kB / 419.8 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.2836, allocations: 104.4 kB / 419.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.2854, allocations: 1.02 MB / 420.9 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.2854, allocations: 0 / 420.9 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.61e-05/0.2855, allocations: 44 kB / 421 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.171e-05/0.2855, allocations: 24 kB / 421 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.2871, allocations: 0.8472 MB / 421.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004807/0.292, allocations: 3.511 MB / 425.4 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002205/0.2942, allocations: 1.903 MB / 427.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009225/0.2951, allocations: 467.4 kB / 427.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.2952, allocations: 97.75 kB / 427.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000863/0.2961, allocations: 0.4891 MB / 428.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.665e-06/0.2961, allocations: 0 / 428.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004437/0.3006, allocations: 1.678 MB / 430 MB, free: 11.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.94e-05/0.3007, allocations: 192.9 kB / 430.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005333/0.3012, allocations: 461.8 kB / 430.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.423e-05/0.3013, allocations: 41.7 kB / 430.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002806/0.3016, allocations: 419.6 kB / 431.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.3018, allocations: 268.1 kB / 431.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.302, allocations: 158.6 kB / 431.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3022, allocations: 370.8 kB / 431.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005542/0.3028, allocations: 265.9 kB / 432.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006797/0.3034, allocations: 495.2 kB / 432.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.3047, allocations: 0.7396 MB / 433.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3047, allocations: 0 / 433.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001965/0.3066, allocations: 1.029 MB / 434.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3067, allocations: 11.94 kB / 434.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.3067, allocations: 4 kB / 434.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008636/0.3076, allocations: 278.8 kB / 434.7 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.3081, allocations: 143.8 kB / 434.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005428/0.3136, allocations: 4.865 MB / 439.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/0.3143, allocations: 99.25 kB / 439.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.641e-05/0.3144, allocations: 32 kB / 439.8 MB, free: 1.234 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.0004413/0.3148, allocations: 248.9 kB / 440 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.315, allocations: 67.25 kB / 440.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.317, allocations: 0.967 MB / 441.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.317, allocations: 12 kB / 441.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.317, allocations: 0 / 441.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.317, allocations: 3.984 kB / 441.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003118/0.3201, allocations: 1.901 MB / 443 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3202, allocations: 0 / 443 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004384/0.3206, allocations: 99.91 kB / 443.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007724/0.3214, allocations: 269.5 kB / 443.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.276e-05/0.3215, allocations: 19.94 kB / 443.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005137/0.3266, allocations: 4.799 MB / 448.2 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3266, allocations: 7.969 kB / 448.2 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.3292, allocations: 1.377 MB / 449.5 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003529/0.3295, allocations: 216 kB / 449.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.3297, allocations: 16 kB / 449.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004746/0.3302, allocations: 43.97 kB / 449.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.3303, allocations: 72.89 kB / 449.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-05/0.3304, allocations: 23.94 kB / 449.9 MB, free: 6.691 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.3308, allocations: 314.9 kB / 450.2 MB, free: 6.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.3308, allocations: 0 / 450.2 MB, free: 6.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00106/0.3318, allocations: 303.2 kB / 450.5 MB, free: 6.09 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.0002777/0.3321, allocations: 160 kB / 450.7 MB, free: 5.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.3341, allocations: 1.08 MB / 451.7 MB, free: 4.816 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.3341, allocations: 7.922 kB / 451.8 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.3353, allocations: 0.7483 MB / 452.5 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006911/0.336, allocations: 122 kB / 452.6 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.339, allocations: 1.649 MB / 454.3 MB, free: 2.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.3396, allocations: 0.9981 MB / 455.3 MB, free: 1.203 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.3398, allocations: 59.41 kB / 455.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3398, allocations: 0 / 455.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of Templates: time 0.02042/0.3602, allocations: 17.27 MB / 472.6 MB, free: 15.89 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,voltageQS.pin_p.reference.gamma,iAC.mean1.y,iAC.mean2.y,iDC2.mean.y Variables in the result:iAC.mean1.y,iAC.mean2.y,iDC2.mean.y,time,voltageQS.pin_p.reference.gamma