Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002723/0.002723, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 51.92 kB / 373.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1037, allocations: 53.33 MB / 426.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.1959/0.2996, allocations: 6.309 MB / 433.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00317/0.3028, allocations: 2.241 MB / 435.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003788/0.3032, allocations: 26.66 kB / 435.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.3048, allocations: 0.7592 MB / 436.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.3062, allocations: 0.6185 MB / 436.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.3072, allocations: 0.5224 MB / 437.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.3083, allocations: 1.188 MB / 438.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009027/0.3092, allocations: 0.6708 MB / 439.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005191/0.3098, allocations: 487.9 kB / 439.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005705/0.3103, allocations: 0.5497 MB / 440.2 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.3105, allocations: 111.3 kB / 440.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005677/0.3111, allocations: 282 kB / 440.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.3112, allocations: 252.3 kB / 440.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004255/0.3117, allocations: 0.5508 MB / 441.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.3133, allocations: 1.489 MB / 442.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3133, allocations: 1.469 kB / 442.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3133, allocations: 0 / 442.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.404e-05/0.3134, allocations: 0 / 442.8 MB, free: 3.809 MB / 350.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.003083/0.3164, allocations: 1.475 MB / 444.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3165, allocations: 9.969 kB / 444.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/0.3192, allocations: 394 kB / 444.7 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008776/0.3201, allocations: 0.5878 MB / 445.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.844e-05/0.3201, allocations: 76.19 kB / 445.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.3203, allocations: 99.72 kB / 445.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.3221, allocations: 1.02 MB / 446.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.3221, allocations: 9.547 kB / 446.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-05/0.3222, allocations: 37.92 kB / 446.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.3222, allocations: 26.53 kB / 446.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.3239, allocations: 0.8513 MB / 447.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/0.3292, allocations: 3.62 MB / 451 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002624/0.3318, allocations: 1.82 MB / 452.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.3328, allocations: 421.3 kB / 453.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001913/0.333, allocations: 177.2 kB / 453.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009484/0.334, allocations: 496.4 kB / 453.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 2.294e-06/0.334, allocations: 4 kB / 453.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=84): time 0.004933/0.3389, allocations: 1.677 MB / 455.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.339, allocations: 197 kB / 455.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.3397, allocations: 476.6 kB / 456.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.916e-05/0.3398, allocations: 44.12 kB / 456.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003773/0.3401, allocations: 428 kB / 456.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002896/0.3404, allocations: 290 kB / 457 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002815/0.3407, allocations: 160.1 kB / 457.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.3409, allocations: 375 kB / 457.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006148/0.3415, allocations: 270.2 kB / 457.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008246/0.3424, allocations: 490.5 kB / 458.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.3438, allocations: 0.748 MB / 459 MB, free: 9.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3438, allocations: 2.125 kB / 459 MB, free: 9.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002275/0.3461, allocations: 1.02 MB / 460 MB, free: 9.227 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3461, allocations: 11.41 kB / 460.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3461, allocations: 5.344 kB / 460.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009836/0.3471, allocations: 267.6 kB / 460.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005973/0.3477, allocations: 139.9 kB / 460.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00633/0.354, allocations: 4.872 MB / 465.3 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007455/0.3548, allocations: 101.3 kB / 465.4 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.547e-05/0.3548, allocations: 34.56 kB / 465.5 MB, free: 4.746 MB / 366.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.0004752/0.3553, allocations: 252.1 kB / 465.7 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.3554, allocations: 70.89 kB / 465.8 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.3578, allocations: 0.9476 MB / 466.7 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.3578, allocations: 12.97 kB / 466.7 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3578, allocations: 1.094 kB / 466.7 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.3578, allocations: 6.25 kB / 466.7 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003803/0.3616, allocations: 1.9 MB / 468.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.3616, allocations: 1.25 kB / 468.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000491/0.3621, allocations: 96.34 kB / 468.7 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009545/0.363, allocations: 266.7 kB / 469 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.308e-05/0.3631, allocations: 17.61 kB / 469 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006696/0.3698, allocations: 4.813 MB / 473.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.3698, allocations: 4.906 kB / 473.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002968/0.3728, allocations: 1.364 MB / 475.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000391/0.3732, allocations: 219.2 kB / 475.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.3733, allocations: 22.22 kB / 475.4 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005043/0.3738, allocations: 48.83 kB / 475.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.374, allocations: 63.25 kB / 475.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.043e-05/0.374, allocations: 32.77 kB / 475.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004346/0.3745, allocations: 326.4 kB / 475.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3745, allocations: 0 / 475.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001233/0.3757, allocations: 313.7 kB / 476.2 MB, free: 12.9 MB / 382.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.000348/0.3761, allocations: 166.2 kB / 476.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002197/0.3782, allocations: 1.041 MB / 477.4 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3783, allocations: 1.25 kB / 477.4 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.3796, allocations: 0.7129 MB / 478.1 MB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008291/0.3804, allocations: 120.7 kB / 478.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003554/0.384, allocations: 1.659 MB / 479.9 MB, free: 9.891 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007292/0.3847, allocations: 0.9982 MB / 480.9 MB, free: 8.863 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000337/0.385, allocations: 79.88 kB / 481 MB, free: 8.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.3852, allocations: 59.42 kB / 481 MB, free: 8.734 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3852, allocations: 3.938 kB / 481 MB, free: 8.73 MB / 382.1 MB Notification: Performance of Templates: time 0.02637/0.4116, allocations: 12.88 MB / 493.9 MB, free: 11.97 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.419640615582466]