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.001899/0.001899, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001534/0.001534, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.434/1.434, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.001565/0.001565, allocations: 47.92 kB / 378.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3057, allocations: 53.36 MB / 431.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008183/0.3139, allocations: 6.345 MB / 438 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004217/0.3181, allocations: 2.252 MB / 440.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004174/0.3185, allocations: 19.94 kB / 440.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001873/0.3204, allocations: 0.7652 MB / 441 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.3219, allocations: 0.6173 MB / 441.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.323, allocations: 0.526 MB / 442.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.3244, allocations: 1.195 MB / 443.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.3256, allocations: 0.7764 MB / 444.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005982/0.3262, allocations: 486.2 kB / 444.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007171/0.3269, allocations: 0.5406 MB / 445.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001518/0.327, allocations: 112 kB / 445.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005688/0.3276, allocations: 283.8 kB / 445.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.3278, allocations: 255.1 kB / 445.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005677/0.3284, allocations: 0.5442 MB / 446.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001725/0.3301, allocations: 1.49 MB / 447.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3301, allocations: 0 / 447.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3301, allocations: 4 kB / 447.8 MB, free: 6.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.3301, allocations: 0 / 447.8 MB, free: 6.641 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.003316/0.3335, allocations: 1.666 MB / 449.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3335, allocations: 8.031 kB / 449.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002502/0.336, allocations: 399.9 kB / 449.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009654/0.337, allocations: 0.5094 MB / 450.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.531e-05/0.337, allocations: 78.38 kB / 450.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.3372, allocations: 108.3 kB / 450.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/0.339, allocations: 1.016 MB / 451.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.339, allocations: 3.953 kB / 451.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-05/0.3391, allocations: 44 kB / 451.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.539e-05/0.3391, allocations: 27.94 kB / 451.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.3409, allocations: 0.8588 MB / 452.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00538/0.3463, allocations: 3.361 MB / 455.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.3482, allocations: 0.8552 MB / 456.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008855/0.3491, allocations: 403.5 kB / 457.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001113/0.3492, allocations: 24.62 kB / 457.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008897/0.3501, allocations: 0.493 MB / 457.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 2.174e-06/0.3501, allocations: 0 / 457.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=84): time 0.004544/0.3546, allocations: 1.481 MB / 459.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.3548, allocations: 192.9 kB / 459.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.3554, allocations: 482 kB / 459.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.44e-05/0.3554, allocations: 41.7 kB / 459.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000342/0.3558, allocations: 428.7 kB / 460.2 MB, free: 9.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.356, allocations: 289.6 kB / 460.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.3563, allocations: 158.6 kB / 460.7 MB, free: 9.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.3565, allocations: 378.7 kB / 461.1 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/0.3571, allocations: 265.9 kB / 461.3 MB, free: 8.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007672/0.3578, allocations: 495.2 kB / 461.8 MB, free: 8.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.3591, allocations: 0.7396 MB / 462.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3591, allocations: 0 / 462.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002105/0.3612, allocations: 1.022 MB / 463.6 MB, free: 6.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3613, allocations: 8 kB / 463.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.3613, allocations: 11.94 kB / 463.6 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009232/0.3622, allocations: 275.1 kB / 463.9 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005852/0.3628, allocations: 139.8 kB / 464 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006253/0.369, allocations: 4.65 MB / 468.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006276/0.3697, allocations: 99.44 kB / 468.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-05/0.3697, allocations: 31.98 kB / 468.8 MB, free: 0.9219 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.mean1.y_last,$PRE.iAC.mean1.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.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.0004308/0.3702, allocations: 260.2 kB / 469 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3703, allocations: 71.58 kB / 469.1 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/0.3724, allocations: 0.9515 MB / 470 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.3725, allocations: 19.92 kB / 470.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.3725, allocations: 0 / 470.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.3725, allocations: 7.969 kB / 470.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.3758, allocations: 1.873 MB / 471.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.3758, allocations: 3.984 kB / 471.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004687/0.3763, allocations: 95.89 kB / 472 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008165/0.3771, allocations: 257.5 kB / 472.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-05/0.3771, allocations: 20 kB / 472.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005706/0.3828, allocations: 4.606 MB / 476.9 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3828, allocations: 4.031 kB / 476.9 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.3855, allocations: 1.366 MB / 478.3 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003014/0.3858, allocations: 143.3 kB / 478.4 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.3859, allocations: 20 kB / 478.4 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.3864, allocations: 43.97 kB / 478.5 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.3865, allocations: 72.86 kB / 478.6 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/0.3866, allocations: 23.98 kB / 478.6 MB, free: 6.758 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004058/0.387, allocations: 326.9 kB / 478.9 MB, free: 6.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.387, allocations: 3.938 kB / 478.9 MB, free: 6.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001042/0.388, allocations: 311.3 kB / 479.2 MB, free: 6.133 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,iDC2.mean.x,iAC.mean2.x,iAC.mean1.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off,iAC.mean2.y_last,iAC.mean1.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.0002861/0.3883, allocations: 167 kB / 479.4 MB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.3903, allocations: 1.061 MB / 480.4 MB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3903, allocations: 0 / 480.4 MB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.3916, allocations: 0.708 MB / 481.1 MB, free: 4.133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006405/0.3922, allocations: 130.3 kB / 481.3 MB, free: 4.004 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.3953, allocations: 1.68 MB / 482.9 MB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.396, allocations: 0.9982 MB / 483.9 MB, free: 1.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003043/0.3963, allocations: 85.47 kB / 484 MB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.3965, allocations: 55.42 kB / 484.1 MB, free: 1.129 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3965, allocations: 0 / 484.1 MB, free: 1.129 MB / 382.1 MB Notification: Performance of Templates: time 0.02432/0.4208, allocations: 13.44 MB / 497.5 MB, free: 3.828 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.20939211291261]