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.0008448/0.0008449, allocations: 96.89 kB / 17.3 MB, free: 6.391 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.0008047/0.0008049, allocations: 178.5 kB / 18.21 MB, free: 5.543 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.335/1.335, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004135/0.0004135, allocations: 8 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08422/0.08465, allocations: 47.58 MB / 329 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005333/0.09002, allocations: 4.796 MB / 333.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008005/0.09806, allocations: 6.592 MB / 340.3 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005094/0.09861, allocations: 39.69 kB / 340.4 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.09986, allocations: 462.6 kB / 340.8 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.1018, allocations: 0.6716 MB / 341.5 MB, free: 7.168 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.1029, allocations: 327 kB / 341.8 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002637/0.1055, allocations: 1.934 MB / 343.8 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002921/0.1058, allocations: 155.5 kB / 343.9 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000423/0.1063, allocations: 318.2 kB / 344.2 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/0.1066, allocations: 329.7 kB / 344.5 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.963e-05/0.1067, allocations: 16 kB / 344.6 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009336/0.1076, allocations: 447.6 kB / 345 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.1077, allocations: 99.2 kB / 345.1 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003538/0.1081, allocations: 450.8 kB / 345.5 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.1093, allocations: 1.226 MB / 346.8 MB, free: 1.875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1094, allocations: 11.94 kB / 346.8 MB, free: 1.863 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1094, allocations: 0 / 346.8 MB, free: 1.863 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.1094, allocations: 3.938 kB / 346.8 MB, free: 1.859 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.001621/0.111, allocations: 1.285 MB / 348.1 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1111, allocations: 12.03 kB / 348.1 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.1112, allocations: 130.3 kB / 348.2 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1122, allocations: 0.8465 MB / 349 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.1123, allocations: 20.44 kB / 349.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.297e-05/0.1123, allocations: 20 kB / 349.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.1128, allocations: 310.6 kB / 349.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.1129, allocations: 0 / 349.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.1129, allocations: 15.94 kB / 349.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1129, allocations: 4 kB / 349.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.1133, allocations: 233.8 kB / 349.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.115, allocations: 1.13 MB / 350.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.1154, allocations: 238.5 kB / 351 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.1158, allocations: 308.4 kB / 351.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008802/0.1167, allocations: 0.7594 MB / 352.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1168, allocations: 38.56 kB / 352.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 3.316e-06/0.1168, allocations: 0 / 352.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002797/0.1196, allocations: 1.58 MB / 353.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.1197, allocations: 114.8 kB / 353.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.1207, allocations: 0.9301 MB / 354.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.1207, allocations: 33.64 kB / 354.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000266/0.121, allocations: 361.5 kB / 355.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.427e-05/0.1211, allocations: 130.1 kB / 355.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.815e-05/0.1212, allocations: 33.7 kB / 355.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1213, allocations: 321.9 kB / 355.6 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.1215, allocations: 132.6 kB / 355.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.1218, allocations: 167.6 kB / 355.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.1232, allocations: 0.7605 MB / 356.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1232, allocations: 0 / 356.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009173/0.1241, allocations: 0.5621 MB / 357.2 MB, free: 6.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.1242, allocations: 37.69 kB / 357.2 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.879e-05/0.1242, allocations: 20 kB / 357.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000212/0.1244, allocations: 73.66 kB / 357.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.1247, allocations: 43.97 kB / 357.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.1269, allocations: 2.997 MB / 360.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.1272, allocations: 12.03 kB / 360.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/0.1273, allocations: 20 kB / 360.4 MB, free: 3.395 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.0003946/0.1277, allocations: 267.8 kB / 360.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.1278, allocations: 118.5 kB / 360.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.1292, allocations: 0.6686 MB / 361.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1292, allocations: 4 kB / 361.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1292, allocations: 7.938 kB / 361.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1292, allocations: 0 / 361.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006909/0.1299, allocations: 0.6199 MB / 362.1 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/0.1299, allocations: 16 kB / 362.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.1301, allocations: 35.97 kB / 362.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001773/0.1303, allocations: 61.69 kB / 362.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.576e-05/0.1304, allocations: 23.98 kB / 362.2 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.1326, allocations: 2.993 MB / 365.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1326, allocations: 0 / 365.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.1339, allocations: 0.8713 MB / 366.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.1342, allocations: 279.4 kB / 366.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.074e-05/0.1343, allocations: 15.94 kB / 366.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.1346, allocations: 8 kB / 366.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.1347, allocations: 35.95 kB / 366.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.1347, allocations: 12 kB / 366.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007159/0.1355, allocations: 0.6295 MB / 367 MB, free: 12.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1355, allocations: 0 / 367 MB, free: 12.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007635/0.1362, allocations: 223.8 kB / 367.3 MB, free: 12.12 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.0005071/0.1367, allocations: 315 kB / 367.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.1378, allocations: 0.7845 MB / 368.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1378, allocations: 4 kB / 368.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006472/0.1385, allocations: 0.6208 MB / 369 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005268/0.139, allocations: 100.7 kB / 369.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.1413, allocations: 1.985 MB / 371.1 MB, free: 8.148 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.1418, allocations: 0.9998 MB / 372.1 MB, free: 7.121 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003126/0.1421, allocations: 89.64 kB / 372.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.568e-05/0.1422, allocations: 59.42 kB / 372.2 MB, free: 6.973 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1422, allocations: 3.938 kB / 372.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of Templates: time 0.1557/0.2979, allocations: 8.299 MB / 380.5 MB, free: 51.87 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches