Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.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.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001666/0.001667, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.378/1.378, allocations: 205.1 MB / 225 MB, free: 12.33 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.001365/0.001365, allocations: 55.92 kB / 281.3 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1089, allocations: 46.62 MB / 327.9 MB, free: 4.496 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006637/0.1156, allocations: 5.206 MB / 333.1 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008707/0.1243, allocations: 6.566 MB / 339.7 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008646/0.1252, allocations: 31.75 kB / 339.7 MB, free: 8.633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.1268, allocations: 0.5008 MB / 340.2 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00258/0.1294, allocations: 0.8068 MB / 341 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.1308, allocations: 430.5 kB / 341.5 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003128/0.1339, allocations: 1.974 MB / 343.4 MB, free: 4.914 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003277/0.1343, allocations: 171 kB / 343.6 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005014/0.1348, allocations: 342.3 kB / 343.9 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00039/0.1352, allocations: 341.7 kB / 344.3 MB, free: 4.062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.567e-05/0.1352, allocations: 32 kB / 344.3 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.1365, allocations: 467.6 kB / 344.8 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1366, allocations: 115.2 kB / 344.9 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003957/0.137, allocations: 445.1 kB / 345.3 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00163/0.1386, allocations: 1.253 MB / 346.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1386, allocations: 0 / 346.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1386, allocations: 0 / 346.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.1387, allocations: 0 / 346.6 MB, free: 1.766 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002019/0.1407, allocations: 1.448 MB / 348 MB, free: 264 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.1407, allocations: 8.031 kB / 348 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.1409, allocations: 130.3 kB / 348.1 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.142, allocations: 0.8581 MB / 349 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.1421, allocations: 12.44 kB / 349 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-05/0.1421, allocations: 24 kB / 349 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.1427, allocations: 310.6 kB / 349.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1427, allocations: 0 / 349.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.1428, allocations: 15.94 kB / 349.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1428, allocations: 4 kB / 349.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.1432, allocations: 221.8 kB / 349.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.145, allocations: 1.13 MB / 350.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003996/0.1454, allocations: 242.4 kB / 350.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004729/0.1459, allocations: 296.5 kB / 351.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001023/0.1469, allocations: 0.7632 MB / 352 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.147, allocations: 34.56 kB / 352 MB, free: 11.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.274e-06/0.147, allocations: 0 / 352 MB, free: 11.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003088/0.1501, allocations: 1.553 MB / 353.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/0.1502, allocations: 114.8 kB / 353.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.1512, allocations: 0.9301 MB / 354.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.1512, allocations: 33.7 kB / 354.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002737/0.1515, allocations: 357.5 kB / 355 MB, free: 8.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.1516, allocations: 130.1 kB / 355.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.1518, allocations: 121.5 kB / 355.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1519, allocations: 321.9 kB / 355.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.1522, allocations: 124.5 kB / 355.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.1524, allocations: 167.6 kB / 355.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.1538, allocations: 0.7333 MB / 356.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1538, allocations: 4 kB / 356.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009306/0.1548, allocations: 0.5541 MB / 357.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.1548, allocations: 41.69 kB / 357.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.017e-05/0.1549, allocations: 12 kB / 357.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000229/0.1551, allocations: 73.7 kB / 357.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/0.1554, allocations: 47.98 kB / 357.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002584/0.158, allocations: 3.327 MB / 360.6 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.1583, allocations: 12.06 kB / 360.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.321e-05/0.1584, allocations: 20 kB / 360.7 MB, free: 2.801 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004209/0.1588, allocations: 271.8 kB / 360.9 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.159, allocations: 114.6 kB / 361.1 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.1603, allocations: 0.6645 MB / 361.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1603, allocations: 4 kB / 361.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1603, allocations: 4 kB / 361.7 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1603, allocations: 0 / 361.7 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007243/0.1611, allocations: 0.616 MB / 362.3 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.553e-05/0.1611, allocations: 15.98 kB / 362.4 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.1613, allocations: 35.98 kB / 362.4 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002025/0.1615, allocations: 73.61 kB / 362.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.1615, allocations: 19.98 kB / 362.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002698/0.1643, allocations: 3.331 MB / 365.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1643, allocations: 0 / 365.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.1657, allocations: 0.8627 MB / 366.7 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004371/0.1662, allocations: 267.6 kB / 366.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.843e-05/0.1663, allocations: 11.94 kB / 367 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.1666, allocations: 11.98 kB / 367 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.724e-05/0.1667, allocations: 31.91 kB / 367 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/0.1667, allocations: 23.98 kB / 367 MB, free: 12.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007722/0.1675, allocations: 0.6256 MB / 367.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1675, allocations: 0 / 367.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008466/0.1684, allocations: 223.9 kB / 367.9 MB, free: 11.2 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005472/0.1689, allocations: 303 kB / 368.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.1702, allocations: 0.7921 MB / 369 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1702, allocations: 0 / 369 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007298/0.1709, allocations: 0.6126 MB / 369.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.1715, allocations: 118 kB / 369.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.1741, allocations: 1.634 MB / 371.3 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006368/0.1748, allocations: 0.9961 MB / 372.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1749, allocations: 51.42 kB / 372.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1749, allocations: 4 kB / 372.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of Templates: time 0.1603/0.3352, allocations: 17.32 MB / 389.7 MB, free: 49.71 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches