Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStationary.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_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009679/0.0009679, allocations: 105.3 kB / 17.58 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.001028/0.001028, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 56.14 kB / 280.7 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0873/0.08859, allocations: 46.62 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.008012/0.09667, allocations: 6.258 MB / 333.5 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00383/0.1005, allocations: 2.181 MB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005718/0.1012, allocations: 19.94 kB / 335.7 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002018/0.1032, allocations: 0.75 MB / 336.5 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.1049, allocations: 0.7844 MB / 337.3 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008746/0.1058, allocations: 498.7 kB / 337.8 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.1068, allocations: 1.183 MB / 338.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.1079, allocations: 0.8393 MB / 339.8 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004798/0.1084, allocations: 462.3 kB / 340.2 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005887/0.109, allocations: 0.5562 MB / 340.8 MB, free: 6.871 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.1092, allocations: 112 kB / 340.9 MB, free: 6.762 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000458/0.1096, allocations: 263.9 kB / 341.2 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.1098, allocations: 259.1 kB / 341.4 MB, free: 6.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004831/0.1103, allocations: 0.5519 MB / 342 MB, free: 5.695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.1117, allocations: 1.437 MB / 343.4 MB, free: 4.254 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1117, allocations: 0 / 343.4 MB, free: 4.254 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1117, allocations: 0 / 343.4 MB, free: 4.254 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1117, allocations: 0 / 343.4 MB, free: 4.254 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002916/0.1146, allocations: 1.448 MB / 344.8 MB, free: 2.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1147, allocations: 8.031 kB / 344.9 MB, free: 2.742 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002888/0.1176, allocations: 467.2 kB / 345.3 MB, free: 2.285 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008037/0.1184, allocations: 0.5695 MB / 345.9 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.677e-05/0.1185, allocations: 78.41 kB / 346 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.1186, allocations: 104.4 kB / 346.1 MB, free: 1.492 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.1203, allocations: 1.059 MB / 347.1 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.1203, allocations: 0 / 347.1 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.1205, allocations: 44 kB / 347.2 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.1205, allocations: 24 kB / 347.2 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.1222, allocations: 0.9174 MB / 348.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005539/0.1277, allocations: 3.754 MB / 351.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002594/0.1303, allocations: 2.482 MB / 354.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009557/0.1313, allocations: 475.4 kB / 354.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.1314, allocations: 89.77 kB / 354.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008391/0.1323, allocations: 0.493 MB / 355.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 5.31e-06/0.1323, allocations: 4 kB / 355.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004373/0.1367, allocations: 1.701 MB / 357.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.1368, allocations: 192.9 kB / 357.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006098/0.1374, allocations: 473.9 kB / 357.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.1375, allocations: 45.7 kB / 357.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/0.1378, allocations: 435.3 kB / 358.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.1381, allocations: 284 kB / 358.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/0.1383, allocations: 166.5 kB / 358.7 MB, free: 4.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1385, allocations: 378.7 kB / 359 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005319/0.139, allocations: 273.9 kB / 359.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006971/0.1397, allocations: 0.5239 MB / 359.8 MB, free: 2.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.1409, allocations: 0.8031 MB / 360.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.141, allocations: 4 kB / 360.6 MB, free: 1.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001953/0.1429, allocations: 1.076 MB / 361.7 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.143, allocations: 8 kB / 361.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.143, allocations: 8 kB / 361.7 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008378/0.1438, allocations: 273.8 kB / 362 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005733/0.1444, allocations: 163.7 kB / 362.1 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005458/0.1499, allocations: 4.859 MB / 367 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006643/0.1505, allocations: 107.2 kB / 367.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.964e-05/0.1506, allocations: 44.05 kB / 367.1 MB, free: 11.12 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,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 (90): * Single equations (assignments): 88 * 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.0003992/0.151, allocations: 241.6 kB / 367.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.1511, allocations: 79.19 kB / 367.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.1531, allocations: 0.9676 MB / 368.4 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.1531, allocations: 8 kB / 368.4 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1531, allocations: 4 kB / 368.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.1531, allocations: 3.984 kB / 368.4 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00308/0.1562, allocations: 1.947 MB / 370.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1562, allocations: 0 / 370.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004161/0.1566, allocations: 99.83 kB / 370.5 MB, free: 7.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007356/0.1574, allocations: 273.5 kB / 370.8 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/0.1575, allocations: 23.98 kB / 370.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005224/0.1627, allocations: 4.805 MB / 375.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1627, allocations: 4.031 kB / 375.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.1652, allocations: 1.388 MB / 377 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.1655, allocations: 216.3 kB / 377.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.026e-05/0.1656, allocations: 16 kB / 377.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004316/0.166, allocations: 47.91 kB / 377.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.1662, allocations: 72.83 kB / 377.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.1662, allocations: 35.94 kB / 377.4 MB, free: 492 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003568/0.1666, allocations: 330.8 kB / 377.7 MB, free: 164 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1666, allocations: 0 / 377.7 MB, free: 164 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.1488/0.3154, allocations: 307 kB / 378 MB, free: 52.43 MB / 318.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,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * 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 (59): * Single equations (assignments): 54 * 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.0004005/0.3159, allocations: 148.7 kB / 378.1 MB, free: 52.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002591/0.3185, allocations: 1.138 MB / 379.3 MB, free: 52.1 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.3185, allocations: 1.375 kB / 379.3 MB, free: 52.1 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.3198, allocations: 0.7488 MB / 380 MB, free: 51.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007663/0.3206, allocations: 113.2 kB / 380.1 MB, free: 51.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.3238, allocations: 1.696 MB / 381.8 MB, free: 51.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005317/0.3243, allocations: 0.9951 MB / 382.8 MB, free: 50.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003936/0.3247, allocations: 92.81 kB / 382.9 MB, free: 50.49 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.3249, allocations: 52.47 kB / 383 MB, free: 50.49 MB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3249, allocations: 3.938 kB / 383 MB, free: 50.48 MB / 318.1 MB Notification: Performance of Templates: time 0.02101/0.3459, allocations: 12.54 MB / 395.5 MB, free: 46.55 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches