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.0009955/0.0009954, allocations: 92.5 kB / 16.65 MB, free: 6.348 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.001228/0.001228, allocations: 178.9 kB / 17.56 MB, free: 5.949 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.367/1.367, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002569/0.0002569, allocations: 8 kB / 301.4 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09703/0.0973, allocations: 50.4 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.00739/0.1047, allocations: 5.734 MB / 357.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004647/0.1094, allocations: 2.083 MB / 359.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.1108, allocations: 16 kB / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.112, allocations: 234.7 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002529/0.1145, allocations: 0.6841 MB / 360.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.1159, allocations: 451 kB / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.1177, allocations: 1.121 MB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001854/0.1195, allocations: 1.049 MB / 363.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006377/0.1202, allocations: 374.3 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006089/0.1208, allocations: 465.7 kB / 364 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.965e-05/0.1209, allocations: 48 kB / 364.1 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000635/0.1216, allocations: 207.8 kB / 364.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.1217, allocations: 179.2 kB / 364.4 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005328/0.1223, allocations: 495 kB / 364.9 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001528/0.1238, allocations: 1.343 MB / 366.3 MB, free: 4.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1238, allocations: 3.938 kB / 366.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1238, allocations: 0 / 366.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1239, allocations: 0 / 366.3 MB, free: 4.914 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002864/0.1267, allocations: 1.257 MB / 367.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.879e-05/0.1268, allocations: 8.031 kB / 367.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002168/0.129, allocations: 371.3 kB / 367.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008697/0.1299, allocations: 0.5539 MB / 368.4 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.1299, allocations: 74.38 kB / 368.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.1301, allocations: 104.3 kB / 368.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/0.1319, allocations: 1.031 MB / 369.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.132, allocations: 12 kB / 369.7 MB, free: 1.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.852e-05/0.1321, allocations: 40 kB / 369.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.1321, allocations: 24 kB / 369.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.1338, allocations: 0.8745 MB / 370.6 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1728/0.3065, allocations: 3.556 MB / 374.2 MB, free: 22.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.3085, allocations: 1.899 MB / 376.1 MB, free: 21.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008921/0.3094, allocations: 479.5 kB / 376.5 MB, free: 20.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.841e-05/0.3095, allocations: 93.95 kB / 376.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008034/0.3103, allocations: 0.4988 MB / 377.1 MB, free: 20.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.304e-06/0.3103, allocations: 0 / 377.1 MB, free: 20.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004204/0.3145, allocations: 1.729 MB / 378.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.3146, allocations: 200.5 kB / 379 MB, free: 19.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/0.3151, allocations: 459.7 kB / 379.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.3151, allocations: 42.08 kB / 379.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.3153, allocations: 415.5 kB / 379.9 MB, free: 19.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.3155, allocations: 277.1 kB / 380.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.646e-05/0.3156, allocations: 76.61 kB / 380.3 MB, free: 18.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.119e-05/0.3157, allocations: 372.7 kB / 380.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005275/0.3162, allocations: 278 kB / 380.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006267/0.3169, allocations: 0.4924 MB / 381.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.318, allocations: 0.7618 MB / 382.2 MB, free: 17.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.318, allocations: 2.406 kB / 382.2 MB, free: 17.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001856/0.3199, allocations: 1.051 MB / 383.2 MB, free: 17.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3199, allocations: 10.66 kB / 383.2 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.3199, allocations: 6.562 kB / 383.2 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008586/0.3208, allocations: 278.9 kB / 383.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.3214, allocations: 148 kB / 383.7 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004526/0.3259, allocations: 4.4 MB / 388.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006348/0.3266, allocations: 106.4 kB / 388.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.138e-05/0.3267, allocations: 35.66 kB / 388.2 MB, free: 13.32 MB / 302.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.0003935/0.3271, allocations: 252.8 kB / 388.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.923e-05/0.3272, allocations: 73.83 kB / 388.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.3292, allocations: 0.9833 MB / 389.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.3292, allocations: 8.844 kB / 389.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3292, allocations: 2.797 kB / 389.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.3292, allocations: 4.844 kB / 389.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.3321, allocations: 1.936 MB / 391.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3322, allocations: 5.906 kB / 391.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.3326, allocations: 102.1 kB / 391.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007373/0.3333, allocations: 272.2 kB / 391.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.551e-05/0.3334, allocations: 16.98 kB / 391.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003821/0.3372, allocations: 4.352 MB / 396.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3372, allocations: 0.9688 kB / 396.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/0.3395, allocations: 1.411 MB / 397.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002321/0.3398, allocations: 214.3 kB / 397.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.628e-05/0.3399, allocations: 25.42 kB / 397.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.3403, allocations: 54.11 kB / 397.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.3405, allocations: 63.31 kB / 398 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.3405, allocations: 29.02 kB / 398 MB, free: 6.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003175/0.3409, allocations: 310.9 kB / 398.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3409, allocations: 0 / 398.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001063/0.3419, allocations: 311.4 kB / 398.6 MB, free: 6.613 MB / 302.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.0002439/0.3422, allocations: 155.3 kB / 398.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.344, allocations: 1.107 MB / 399.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.344, allocations: 0 / 399.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009764/0.345, allocations: 0.7414 MB / 400.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006768/0.3456, allocations: 116.1 kB / 400.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.3481, allocations: 2.115 MB / 402.8 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/0.3485, allocations: 0.9969 MB / 403.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003102/0.3488, allocations: 77.34 kB / 403.9 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3489, allocations: 47.42 kB / 403.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3489, allocations: 0 / 403.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of Templates: time 0.01915/0.3681, allocations: 11.37 MB / 415.3 MB, free: 7.562 MB / 318.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