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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001704/0.001704, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.341/1.341, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001213/0.001213, allocations: 51.92 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07395/0.07517, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.00575/0.08096, allocations: 5.205 MB / 332.6 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007803/0.08878, allocations: 6.566 MB / 339.1 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.08999, allocations: 31.75 kB / 339.2 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.09163, allocations: 496.9 kB / 339.7 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002493/0.09415, allocations: 0.8224 MB / 340.5 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.09542, allocations: 442.4 kB / 340.9 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00279/0.09822, allocations: 1.97 MB / 342.9 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003847/0.09862, allocations: 171 kB / 343.1 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004873/0.09911, allocations: 334.3 kB / 343.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003735/0.0995, allocations: 337.7 kB / 343.7 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.406e-05/0.09957, allocations: 36 kB / 343.7 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009031/0.1005, allocations: 467.6 kB / 344.2 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.1006, allocations: 107.2 kB / 344.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.1009, allocations: 449 kB / 344.7 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.1022, allocations: 1.261 MB / 346 MB, free: 1.652 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1022, allocations: 0 / 346 MB, free: 1.652 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1022, allocations: 0 / 346 MB, free: 1.652 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.1022, allocations: 0 / 346 MB, free: 1.652 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.001721/0.1039, allocations: 1.44 MB / 347.4 MB, free: 156 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.104, allocations: 8.031 kB / 347.5 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.416e-05/0.104, allocations: 66.47 kB / 347.5 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.1042, allocations: 126.6 kB / 347.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009473/0.1051, allocations: 0.8542 MB / 348.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.1052, allocations: 16.44 kB / 348.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.1052, allocations: 24 kB / 348.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.1057, allocations: 306.6 kB / 348.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1058, allocations: 0 / 348.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.1058, allocations: 11.94 kB / 348.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.1058, allocations: 8 kB / 348.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004022/0.1062, allocations: 233.7 kB / 349.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.1079, allocations: 1.13 MB / 350.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.1083, allocations: 246.4 kB / 350.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004644/0.1088, allocations: 292.5 kB / 350.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009097/0.1097, allocations: 0.7555 MB / 351.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.1098, allocations: 34.56 kB / 351.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.924e-06/0.1098, allocations: 0 / 351.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002759/0.1125, allocations: 1.553 MB / 353.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.1126, allocations: 110.8 kB / 353.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009199/0.1135, allocations: 0.9339 MB / 354.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.1136, allocations: 33.7 kB / 354.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/0.1138, allocations: 361.5 kB / 354.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.604e-05/0.1139, allocations: 130 kB / 354.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.1141, allocations: 121.5 kB / 354.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.687e-05/0.1142, allocations: 322 kB / 355.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.1144, allocations: 120.6 kB / 355.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.1147, allocations: 171.4 kB / 355.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.1161, allocations: 0.7294 MB / 356.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1161, allocations: 4 kB / 356.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009191/0.117, allocations: 0.5541 MB / 356.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.117, allocations: 41.69 kB / 356.7 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.184e-05/0.1171, allocations: 16 kB / 356.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002232/0.1173, allocations: 73.7 kB / 356.8 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.1176, allocations: 43.91 kB / 356.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.1201, allocations: 3.327 MB / 360.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.1204, allocations: 16.09 kB / 360.2 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.011e-05/0.1205, allocations: 20 kB / 360.2 MB, free: 2.617 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.0004069/0.1209, allocations: 263.7 kB / 360.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.1211, allocations: 118.6 kB / 360.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.1224, allocations: 0.6648 MB / 361.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1224, allocations: 4 kB / 361.2 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1224, allocations: 4 kB / 361.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1224, allocations: 0 / 361.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007077/0.1231, allocations: 0.6121 MB / 361.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.646e-05/0.1232, allocations: 20 kB / 361.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.1234, allocations: 31.92 kB / 361.9 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001784/0.1236, allocations: 69.67 kB / 362 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/0.1236, allocations: 15.98 kB / 362 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.1259, allocations: 3.339 MB / 365.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.126, allocations: 0 / 365.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.1273, allocations: 0.8666 MB / 366.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003478/0.1276, allocations: 267.5 kB / 366.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.1278, allocations: 15.92 kB / 366.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.128, allocations: 8.125 kB / 366.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.316e-05/0.1281, allocations: 31.97 kB / 366.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/0.1282, allocations: 23.98 kB / 366.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000701/0.1289, allocations: 0.6256 MB / 367.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1289, allocations: 7.875 kB / 367.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007594/0.1297, allocations: 223.9 kB / 367.4 MB, free: 11.01 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.001943/0.1316, allocations: 1.589 MB / 369 MB, free: 9.379 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.1327, allocations: 0.8037 MB / 369.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1327, allocations: 0 / 369.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006413/0.1334, allocations: 0.6204 MB / 370.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005211/0.1339, allocations: 96.09 kB / 370.5 MB, free: 7.738 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007188/0.1411, allocations: 6 MB / 376.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.1416, allocations: 1 MB / 377.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003135/0.142, allocations: 93.64 kB / 377.6 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002832/0.1422, allocations: 283.3 kB / 377.8 MB, free: 132 kB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1423, allocations: 0 / 377.8 MB, free: 132 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1624/0.3047, allocations: 17.02 MB / 394.9 MB, free: 47.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.3, allocations: 2.375 kB / 394.9 MB, free: 47.8 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.csv","/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