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.001455/0.001455, allocations: 103.2 kB / 18.35 MB, free: 4.723 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.00162/0.001621, allocations: 188.1 kB / 19.29 MB, free: 3.793 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.404/1.404, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001245/0.001246, allocations: 55.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.0925, allocations: 46.62 MB / 328.7 MB, free: 3.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006337/0.09888, allocations: 5.213 MB / 333.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008436/0.1074, allocations: 6.558 MB / 340.5 MB, free: 7.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009449/0.1084, allocations: 43.69 kB / 340.5 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.1099, allocations: 0.493 MB / 341 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002666/0.1125, allocations: 0.8146 MB / 341.8 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.1138, allocations: 434.4 kB / 342.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003412/0.1173, allocations: 1.989 MB / 344.3 MB, free: 4.184 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.1176, allocations: 163 kB / 344.4 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005037/0.1181, allocations: 342.3 kB / 344.7 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004125/0.1186, allocations: 349.7 kB / 345.1 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.197e-05/0.1186, allocations: 28 kB / 345.1 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00112/0.1198, allocations: 467.6 kB / 345.6 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.1199, allocations: 115.2 kB / 345.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003959/0.1203, allocations: 445.1 kB / 346.1 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.1217, allocations: 1.269 MB / 347.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1217, allocations: 0 / 347.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1217, allocations: 0 / 347.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1217, allocations: 4 kB / 347.4 MB, free: 1.02 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.001984/0.1237, allocations: 1.436 MB / 348.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1238, allocations: 12.02 kB / 348.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.124, allocations: 134.3 kB / 349 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.125, allocations: 0.8503 MB / 349.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.1251, allocations: 12.44 kB / 349.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.1251, allocations: 24 kB / 349.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.1257, allocations: 302.7 kB / 350.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1257, allocations: 0 / 350.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.1257, allocations: 15.94 kB / 350.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1258, allocations: 7.984 kB / 350.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.1262, allocations: 229.7 kB / 350.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/0.1279, allocations: 1.122 MB / 351.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003998/0.1283, allocations: 242.3 kB / 351.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004651/0.1288, allocations: 308.7 kB / 352.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001043/0.1299, allocations: 0.7476 MB / 352.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.1299, allocations: 50.48 kB / 352.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.214e-06/0.1299, allocations: 0 / 352.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003024/0.1329, allocations: 1.538 MB / 354.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.133, allocations: 114.8 kB / 354.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.1341, allocations: 0.9301 MB / 355.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.1341, allocations: 33.7 kB / 355.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.1344, allocations: 357.5 kB / 355.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.1345, allocations: 130.1 kB / 355.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.1347, allocations: 121.5 kB / 356.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1348, allocations: 321.9 kB / 356.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.1351, allocations: 124.6 kB / 356.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002585/0.1353, allocations: 163.5 kB / 356.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.1367, allocations: 0.7411 MB / 357.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1368, allocations: 0 / 357.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009342/0.1377, allocations: 0.5541 MB / 358 MB, free: 5.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.345e-05/0.1378, allocations: 45.72 kB / 358 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.142e-05/0.1378, allocations: 12 kB / 358 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.138, allocations: 65.69 kB / 358.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.1383, allocations: 47.91 kB / 358.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00264/0.1409, allocations: 3.324 MB / 361.4 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000328/0.1412, allocations: 20.08 kB / 361.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.1413, allocations: 20 kB / 361.5 MB, free: 2.07 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.0004287/0.1418, allocations: 259.7 kB / 361.7 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.1419, allocations: 122.6 kB / 361.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.1432, allocations: 0.6647 MB / 362.5 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1432, allocations: 4 kB / 362.5 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1432, allocations: 0 / 362.5 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1432, allocations: 0 / 362.5 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007116/0.1439, allocations: 0.6199 MB / 363.1 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.329e-05/0.1439, allocations: 19.98 kB / 363.2 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1441, allocations: 39.86 kB / 363.2 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001888/0.1443, allocations: 69.67 kB / 363.3 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.1444, allocations: 15.98 kB / 363.3 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/0.1468, allocations: 3.331 MB / 366.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1468, allocations: 3.938 kB / 366.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.148, allocations: 0.8587 MB / 367.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003969/0.1484, allocations: 267.6 kB / 367.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.436e-05/0.1485, allocations: 12 kB / 367.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.1488, allocations: 19.98 kB / 367.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/0.1489, allocations: 27.97 kB / 367.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-05/0.149, allocations: 19.98 kB / 367.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007803/0.1498, allocations: 0.6256 MB / 368.4 MB, free: 10.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1498, allocations: 0 / 368.4 MB, free: 10.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008441/0.1506, allocations: 231.9 kB / 368.7 MB, free: 10.46 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.0005162/0.1511, allocations: 295 kB / 369 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.1523, allocations: 0.7766 MB / 369.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1523, allocations: 4.062 kB / 369.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006386/0.1529, allocations: 0.6087 MB / 370.4 MB, free: 8.648 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005765/0.1535, allocations: 112.9 kB / 370.5 MB, free: 8.539 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.1557, allocations: 1.577 MB / 372 MB, free: 6.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006574/0.1564, allocations: 1.004 MB / 373 MB, free: 5.898 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002573/0.1566, allocations: 89.64 kB / 373.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.521e-05/0.1567, allocations: 47.44 kB / 373.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1567, allocations: 0 / 373.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of Templates: time 0.1541/0.3109, allocations: 8.623 MB / 381.8 MB, free: 53.07 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 -s cvode -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