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.001278/0.001278, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001226/0.001226, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.316/1.316, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 47.52 kB / 301.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09405/0.0951, allocations: 49.45 MB / 350.7 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007696/0.1028, allocations: 6.211 MB / 356.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004578/0.1074, allocations: 2.126 MB / 359.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007355/0.1082, allocations: 19.94 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.1102, allocations: 0.7625 MB / 359.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00196/0.1122, allocations: 0.7528 MB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.1132, allocations: 0.491 MB / 361.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.1143, allocations: 1.168 MB / 362.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001134/0.1155, allocations: 0.8353 MB / 363.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004951/0.116, allocations: 454.3 kB / 363.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006104/0.1166, allocations: 0.5406 MB / 364.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.1168, allocations: 112 kB / 364.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005633/0.1173, allocations: 271.8 kB / 364.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.1175, allocations: 247.1 kB / 364.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004683/0.118, allocations: 0.5365 MB / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.1194, allocations: 1.437 MB / 366.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1194, allocations: 4 kB / 366.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.264e-05/0.1194, allocations: 0 / 366.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.1194, allocations: 0 / 366.7 MB, free: 4.355 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.002999/0.1224, allocations: 1.416 MB / 368.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.1225, allocations: 12.03 kB / 368.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002195/0.1247, allocations: 375.3 kB / 368.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008151/0.1255, allocations: 0.5539 MB / 369 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.058e-05/0.1256, allocations: 74.38 kB / 369.1 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002155/0.1258, allocations: 108.3 kB / 369.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.1276, allocations: 1.016 MB / 370.2 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/0.1276, allocations: 4 kB / 370.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-05/0.1277, allocations: 40 kB / 370.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.22e-05/0.1278, allocations: 27.98 kB / 370.3 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1579/0.2856, allocations: 0.8442 MB / 371.1 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005595/0.2913, allocations: 3.525 MB / 374.7 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002088/0.2934, allocations: 1.901 MB / 376.6 MB, free: 21.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008988/0.2943, allocations: 467.8 kB / 377 MB, free: 21.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-05/0.2944, allocations: 93.2 kB / 377.1 MB, free: 21.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008131/0.2952, allocations: 0.4906 MB / 377.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.906e-06/0.2952, allocations: 0 / 377.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004443/0.2997, allocations: 1.682 MB / 379.3 MB, free: 20.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.38e-05/0.2998, allocations: 196 kB / 379.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005557/0.3004, allocations: 464.6 kB / 379.9 MB, free: 20.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.3004, allocations: 43.08 kB / 380 MB, free: 19.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.3007, allocations: 411 kB / 380.4 MB, free: 19.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.3009, allocations: 275.7 kB / 380.6 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.3011, allocations: 155.9 kB / 380.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3012, allocations: 372.7 kB / 381.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005503/0.3018, allocations: 267 kB / 381.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006534/0.3025, allocations: 484.6 kB / 381.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.3036, allocations: 0.7431 MB / 382.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3036, allocations: 1.312 kB / 382.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001964/0.3056, allocations: 1.025 MB / 383.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.3056, allocations: 10.41 kB / 383.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.3057, allocations: 6.141 kB / 383.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008792/0.3066, allocations: 285.4 kB / 384 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005669/0.3071, allocations: 143.5 kB / 384.1 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004822/0.312, allocations: 4.863 MB / 389 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006928/0.3127, allocations: 106.3 kB / 389.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.226e-05/0.3127, allocations: 39.8 kB / 389.1 MB, free: 13.52 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.0004084/0.3132, allocations: 234.1 kB / 389.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3133, allocations: 69.91 kB / 389.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.3152, allocations: 0.9736 MB / 390.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.3153, allocations: 9.594 kB / 390.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3153, allocations: 0.7969 kB / 390.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.3153, allocations: 4.984 kB / 390.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.3183, allocations: 1.91 MB / 392.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3183, allocations: 2.812 kB / 392.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004276/0.3187, allocations: 96.34 kB / 392.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007538/0.3195, allocations: 269.8 kB / 392.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.848e-05/0.3196, allocations: 21.56 kB / 392.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004113/0.3237, allocations: 4.819 MB / 397.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3237, allocations: 0 / 397.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/0.326, allocations: 1.371 MB / 398.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.3262, allocations: 213.1 kB / 399.1 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.515e-05/0.3263, allocations: 18.19 kB / 399.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004456/0.3268, allocations: 45.2 kB / 399.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.327, allocations: 71.31 kB / 399.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.607e-05/0.327, allocations: 24.66 kB / 399.2 MB, free: 6.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003309/0.3274, allocations: 313.9 kB / 399.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3274, allocations: 1.562 kB / 399.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001108/0.3285, allocations: 305.8 kB / 399.8 MB, free: 6.23 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.0002266/0.3287, allocations: 155 kB / 400 MB, free: 6.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3308, allocations: 1.117 MB / 401.1 MB, free: 5.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.3308, allocations: 5.594 kB / 401.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009739/0.3318, allocations: 0.7442 MB / 401.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006042/0.3324, allocations: 123.4 kB / 402 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.3349, allocations: 1.685 MB / 403.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.3353, allocations: 0.9943 MB / 404.7 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.3355, allocations: 55.42 kB / 404.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3355, allocations: 0 / 404.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of Templates: time 0.01909/0.3546, allocations: 17.22 MB / 421.9 MB, free: 1.477 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/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