Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.000882/0.0008825, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0008774/0.0008775, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002447, allocations: 7.25 kB / 300.7 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.08503, allocations: 50.42 MB / 351.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006051/0.09113, allocations: 4.195 MB / 355.3 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.1012, allocations: 5.709 MB / 361 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008116/0.102, allocations: 35.69 kB / 361.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.1035, allocations: 422 kB / 361.5 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002794/0.1064, allocations: 0.7047 MB / 362.2 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1077, allocations: 311.1 kB / 362.5 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004193/0.1119, allocations: 1.844 MB / 364.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004171/0.1123, allocations: 151.5 kB / 364.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006/0.1129, allocations: 298.5 kB / 364.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005898/0.1135, allocations: 314 kB / 365.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.1136, allocations: 16 kB / 365.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.115, allocations: 443.5 kB / 365.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.1151, allocations: 91.33 kB / 365.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002637/0.1154, allocations: 213.1 kB / 365.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.1167, allocations: 0.9076 MB / 366.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1168, allocations: 0 / 366.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1168, allocations: 0 / 366.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.227e-05/0.1168, allocations: 4 kB / 366.7 MB, free: 12.01 MB / 302.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.002426/0.1193, allocations: 1.297 MB / 368 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1193, allocations: 8.031 kB / 368 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.1195, allocations: 126.4 kB / 368.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.1207, allocations: 0.8008 MB / 369 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.1207, allocations: 24.31 kB / 369 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.1208, allocations: 27.95 kB / 369 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005003/0.1213, allocations: 310.6 kB / 369.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.1213, allocations: 0 / 369.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.1214, allocations: 4 kB / 369.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1214, allocations: 8 kB / 369.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003942/0.1218, allocations: 229.7 kB / 369.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.1235, allocations: 1.149 MB / 370.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.1239, allocations: 246.4 kB / 371 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008396/0.1247, allocations: 0.7594 MB / 371.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.1248, allocations: 34.56 kB / 371.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.843e-06/0.1248, allocations: 0 / 371.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.00286/0.1276, allocations: 1.965 MB / 373.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.1277, allocations: 114.8 kB / 373.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009065/0.1286, allocations: 0.9222 MB / 374.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.1287, allocations: 29.7 kB / 374.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.1289, allocations: 365.6 kB / 375.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.243e-05/0.129, allocations: 130 kB / 375.3 MB, free: 2.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.08e-05/0.129, allocations: 4 kB / 375.3 MB, free: 2.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.1291, allocations: 321.9 kB / 375.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.1294, allocations: 128.6 kB / 375.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.1296, allocations: 167.6 kB / 375.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002731/0.1299, allocations: 178.9 kB / 376 MB, free: 2.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1299, allocations: 4 kB / 376 MB, free: 2.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008661/0.1308, allocations: 0.5562 MB / 376.6 MB, free: 1.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/0.1308, allocations: 41.69 kB / 376.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.791e-05/0.1309, allocations: 12 kB / 376.7 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002187/0.1311, allocations: 81.64 kB / 376.7 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.1313, allocations: 39.92 kB / 376.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.1334, allocations: 3.008 MB / 379.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.1337, allocations: 16.02 kB / 379.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.1338, allocations: 23.94 kB / 379.8 MB, free: 14.03 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003388/0.1341, allocations: 260.3 kB / 380.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.1342, allocations: 118.5 kB / 380.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.1356, allocations: 0.6763 MB / 380.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1356, allocations: 7.953 kB / 380.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1356, allocations: 4 kB / 380.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1356, allocations: 3.984 kB / 380.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006824/0.1363, allocations: 0.6082 MB / 381.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/0.1363, allocations: 15.98 kB / 381.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001869/0.1365, allocations: 43.98 kB / 381.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001728/0.1367, allocations: 65.61 kB / 381.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.1367, allocations: 23.98 kB / 381.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.1388, allocations: 3.004 MB / 384.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1388, allocations: 0 / 384.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.14, allocations: 0.8667 MB / 385.5 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003472/0.1404, allocations: 275.5 kB / 385.8 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.637e-05/0.1405, allocations: 8 kB / 385.8 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.1407, allocations: 15.98 kB / 385.8 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.1408, allocations: 35.91 kB / 385.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.756e-05/0.1409, allocations: 19.98 kB / 385.9 MB, free: 7.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006746/0.1416, allocations: 0.6139 MB / 386.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1416, allocations: 0 / 386.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007751/0.1424, allocations: 227.8 kB / 386.7 MB, free: 6.758 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000458/0.1428, allocations: 295.7 kB / 387 MB, free: 6.457 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.1439, allocations: 0.7847 MB / 387.8 MB, free: 5.609 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1439, allocations: 0 / 387.8 MB, free: 5.609 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006359/0.1446, allocations: 0.6166 MB / 388.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.145, allocations: 108.6 kB / 388.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.1472, allocations: 1.869 MB / 390.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.1476, allocations: 1.023 MB / 391.4 MB, free: 1.871 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003005/0.1479, allocations: 93.62 kB / 391.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.148, allocations: 51.42 kB / 391.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.148, allocations: 0 / 391.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of Templates: time 0.01384/0.1619, allocations: 7.901 MB / 399.4 MB, free: 9.859 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches