Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",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.001452/0.001452, allocations: 107.3 kB / 16.92 MB, free: 6.117 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.001626/0.001626, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.691/1.691, allocations: 222.9 MB / 241.5 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 43.25 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1178, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003794/0.1216, allocations: 1.509 MB / 351.7 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.1238, allocations: 0.8512 MB / 352.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.45e-05/0.1239, allocations: 3.938 kB / 352.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.528e-05/0.1241, allocations: 11.92 kB / 352.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.862e-05/0.1242, allocations: 15.86 kB / 352.6 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003605/0.1245, allocations: 47.89 kB / 352.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.1248, allocations: 159.7 kB / 352.8 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.1249, allocations: 15.98 kB / 352.8 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004783/0.1254, allocations: 379.3 kB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.1256, allocations: 59.77 kB / 353.2 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.357e-05/0.1257, allocations: 12 kB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.363e-05/0.1257, allocations: 8 kB / 353.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1258, allocations: 71.7 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.126, allocations: 119.1 kB / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000353/0.1263, allocations: 346.8 kB / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1264, allocations: 0 / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1264, allocations: 0 / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.1264, allocations: 0 / 353.7 MB, free: 0.7109 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001068/0.1275, allocations: 0.727 MB / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.1275, allocations: 8.031 kB / 354.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.098e-05/0.1276, allocations: 38.73 kB / 354.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.935e-05/0.1277, allocations: 40.47 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.128, allocations: 282.3 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.1281, allocations: 4.375 kB / 354.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.1281, allocations: 12.38 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.1285, allocations: 121.7 kB / 355 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1285, allocations: 0 / 355 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.885e-05/0.1286, allocations: 4 kB / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1286, allocations: 3.938 kB / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.1288, allocations: 55.97 kB / 355 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007733/0.1295, allocations: 464.4 kB / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.1297, allocations: 94.55 kB / 355.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001733/0.1299, allocations: 80.89 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.906e-06/0.13, allocations: 0 / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004529/0.1304, allocations: 214.6 kB / 355.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.013e-06/0.1304, allocations: 4 kB / 355.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009526/0.1314, allocations: 463.8 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.1315, allocations: 170.2 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006923/0.1322, allocations: 0.5129 MB / 357 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.1323, allocations: 33.7 kB / 357 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/0.1324, allocations: 97.12 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.1324, allocations: 31.59 kB / 357.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.1325, allocations: 85.41 kB / 357.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1327, allocations: 322.8 kB / 357.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.1329, allocations: 59.97 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.1331, allocations: 69.69 kB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.1334, allocations: 339.2 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1334, allocations: 0 / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006395/0.1341, allocations: 380.2 kB / 358.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.422e-05/0.1342, allocations: 126.8 kB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1342, allocations: 0 / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1342, allocations: 0 / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.329e-05/0.1343, allocations: 0 / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.1343, allocations: 7.938 kB / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.1344, allocations: 11.98 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.448e-05/0.1345, allocations: 36 kB / 358.6 MB, free: 11.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.yy,bUF3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003584/0.1349, allocations: 374.2 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/0.1349, allocations: 39.53 kB / 359 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.1351, allocations: 67.14 kB / 359 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1351, allocations: 112 / 359 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1351, allocations: 7.875 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1351, allocations: 0 / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.1362, allocations: 0.8095 MB / 359.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.1362, allocations: 0 / 359.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.022e-06/0.1362, allocations: 3.938 kB / 359.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1362, allocations: 0 / 359.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.1363, allocations: 16 kB / 359.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.1363, allocations: 3.984 kB / 359.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.1363, allocations: 3.938 kB / 359.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007706/0.1371, allocations: 0.5164 MB / 360.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/0.1374, allocations: 248.4 kB / 360.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.308e-05/0.1374, allocations: 12.23 kB / 360.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.1376, allocations: 12 kB / 360.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.1377, allocations: 35.91 kB / 360.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.883e-05/0.1378, allocations: 39.94 kB / 360.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006297/0.1384, allocations: 390.9 kB / 361.1 MB, free: 8.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1384, allocations: 0 / 361.1 MB, free: 8.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.1388, allocations: 47.94 kB / 361.2 MB, free: 8.676 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001127/0.1399, allocations: 1.085 MB / 362.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006418/0.1405, allocations: 433.5 kB / 362.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1406, allocations: 4 kB / 362.7 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003804/0.1409, allocations: 369.6 kB / 363 MB, free: 6.652 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007374/0.1417, allocations: 127.6 kB / 363.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.1457, allocations: 2.736 MB / 365.9 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.1462, allocations: 0.8022 MB / 366.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.615e-05/0.1463, allocations: 12.64 kB / 366.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.916e-05/0.1463, allocations: 27.44 kB / 366.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1463, allocations: 0 / 366.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2123/0.3586, allocations: 5.728 MB / 372.5 MB, free: 25.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.085/8.443, allocations: 9.625 kB / 372.5 MB, free: 25.63 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches