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.001083/0.001084, allocations: 113 kB / 17.07 MB, free: 6.016 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.001022/0.001022, allocations: 191 kB / 18 MB, free: 5.098 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.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 43.94 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2648, allocations: 49.44 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006752/0.2715, allocations: 6.224 MB / 407 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0034/0.275, allocations: 2.133 MB / 409.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003642/0.2754, allocations: 19.94 kB / 409.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001627/0.277, allocations: 0.75 MB / 409.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001428/0.2785, allocations: 0.7562 MB / 410.6 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008696/0.2793, allocations: 0.4909 MB / 411.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.2804, allocations: 1.176 MB / 412.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001089/0.2815, allocations: 0.8276 MB / 413.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004675/0.282, allocations: 454.4 kB / 413.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006045/0.2826, allocations: 0.5445 MB / 414.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001456/0.2828, allocations: 112 kB / 414.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005015/0.2833, allocations: 263.9 kB / 414.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002236/0.2835, allocations: 255.1 kB / 414.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004347/0.2839, allocations: 0.5403 MB / 415.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.2853, allocations: 1.455 MB / 416.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2853, allocations: 0 / 416.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2853, allocations: 0 / 416.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.2853, allocations: 0 / 416.7 MB, free: 8.859 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.002762/0.2881, allocations: 1.45 MB / 418.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2882, allocations: 19.89 kB / 418.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002169/0.2903, allocations: 371.9 kB / 418.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008174/0.2912, allocations: 0.5659 MB / 419.1 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.888e-05/0.2912, allocations: 74.38 kB / 419.2 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.2914, allocations: 100.4 kB / 419.3 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.2931, allocations: 1.02 MB / 420.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.2932, allocations: 4 kB / 420.3 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.888e-05/0.2933, allocations: 43.94 kB / 420.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.2933, allocations: 24 kB / 420.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.2949, allocations: 0.8511 MB / 421.2 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004861/0.2998, allocations: 3.52 MB / 424.7 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.302, allocations: 1.896 MB / 426.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008966/0.3029, allocations: 469.7 kB / 427.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.3031, allocations: 89.67 kB / 427.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008271/0.3039, allocations: 496.9 kB / 427.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.215e-06/0.3039, allocations: 0 / 427.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004328/0.3082, allocations: 1.69 MB / 429.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.457e-05/0.3084, allocations: 196.9 kB / 429.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004936/0.3089, allocations: 453.9 kB / 430 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.207e-05/0.3089, allocations: 41.7 kB / 430 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.3092, allocations: 420.7 kB / 430.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.3094, allocations: 293.5 kB / 430.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002341/0.3097, allocations: 154.6 kB / 430.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3098, allocations: 370.8 kB / 431.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005334/0.3103, allocations: 277.9 kB / 431.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006695/0.311, allocations: 483.1 kB / 432 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.3122, allocations: 0.7551 MB / 432.7 MB, free: 7.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3122, allocations: 4 kB / 432.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00187/0.3141, allocations: 1.026 MB / 433.8 MB, free: 6.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3141, allocations: 15.97 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3141, allocations: 4 kB / 433.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008316/0.315, allocations: 269.5 kB / 434.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.3156, allocations: 139.8 kB / 434.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005146/0.3207, allocations: 4.866 MB / 439.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.3213, allocations: 99.38 kB / 439.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/0.3214, allocations: 43.92 kB / 439.2 MB, free: 1.195 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.0003554/0.3217, allocations: 240.1 kB / 439.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.3218, allocations: 67.58 kB / 439.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.3238, allocations: 0.9671 MB / 440.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.3238, allocations: 16.17 kB / 440.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.3238, allocations: 0 / 440.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.3238, allocations: 15.92 kB / 440.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.3267, allocations: 1.906 MB / 442.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3267, allocations: 0 / 442.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.3271, allocations: 91.89 kB / 442.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007522/0.3279, allocations: 265.4 kB / 442.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-05/0.328, allocations: 23.98 kB / 442.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004814/0.3328, allocations: 4.803 MB / 447.6 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3328, allocations: 7.969 kB / 447.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00234/0.3351, allocations: 1.374 MB / 449 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.3354, allocations: 212.4 kB / 449.2 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-05/0.3355, allocations: 31.92 kB / 449.2 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.336, allocations: 39.97 kB / 449.2 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.3361, allocations: 64.91 kB / 449.3 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/0.3362, allocations: 39.92 kB / 449.3 MB, free: 6.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003249/0.3365, allocations: 306.9 kB / 449.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3365, allocations: 4 kB / 449.6 MB, free: 6.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009643/0.3375, allocations: 307.4 kB / 449.9 MB, free: 6.031 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.0002435/0.3377, allocations: 163.9 kB / 450.1 MB, free: 5.859 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001917/0.3397, allocations: 1.089 MB / 451.2 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.83e-06/0.3397, allocations: 4 kB / 451.2 MB, free: 4.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3407, allocations: 0.7354 MB / 451.9 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.3413, allocations: 117.6 kB / 452 MB, free: 3.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.344, allocations: 1.663 MB / 453.7 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005652/0.3446, allocations: 0.9904 MB / 454.7 MB, free: 1.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003227/0.3449, allocations: 81.33 kB / 454.8 MB, free: 1.078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3451, allocations: 55.36 kB / 454.8 MB, free: 1.023 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3451, allocations: 0 / 454.8 MB, free: 1.023 MB / 366.1 MB Notification: Performance of Templates: time 0.02171/0.3668, allocations: 12.54 MB / 467.4 MB, free: 4.617 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